File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -73,13 +73,15 @@ - (void)messageComposeViewController:(MFMessageComposeViewController *)controlle
7373 [self .viewController dismissViewControllerAnimated: YES completion: nil ];
7474
7575 if (webviewResult == 1 ) {
76- [super writeJavascript: [[CDVPluginResult resultWithStatus: CDVCommandStatus_OK
77- messageAsString: message]
78- toSuccessCallbackString: self .callbackID]];
76+ CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus: CDVCommandStatus_OK
77+ messageAsString: message];
78+
79+ [self .commandDelegate sendPluginResult: pluginResult callbackId: self .callbackID];
7980 } else {
80- [super writeJavascript: [[CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR
81- messageAsString: message]
82- toErrorCallbackString: self .callbackID]];
81+ CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR
82+ messageAsString: message];
83+
84+ [self .commandDelegate sendPluginResult: pluginResult callbackId: self .callbackID];
8385 }
8486}
8587
You can’t perform that action at this time.
0 commit comments