We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23cdcc1 commit 7f4b630Copy full SHA for 7f4b630
src/ios/SafariViewController.m
@@ -123,7 +123,7 @@ - (void) hide:(CDVInvokedUrlCommand*)command {
123
*/
124
- (void)safariViewControllerDidFinish:(SFSafariViewController *)controller {
125
if (self.callbackId != nil) {
126
- NSString * cbid = self.callbackId;
+ NSString * cbid = [self.callbackId copy];
127
self.callbackId = nil;
128
CDVPluginResult * pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:@{@"event":@"closed"}];
129
[self.commandDelegate sendPluginResult:pluginResult callbackId:cbid];
0 commit comments