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.
2 parents 23cdcc1 + 7f4b630 commit 8f7856fCopy full SHA for 8f7856f
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