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 63d9e4f commit 518ee1eCopy full SHA for 518ee1e
src/ios/PushPlugin.m
@@ -219,9 +219,11 @@ - (void)setApplicationIconBadgeNumber:(CDVInvokedUrlCommand *)command {
219
}
220
-(void)successWithMessage:(NSString *)message
221
{
222
- CDVPluginResult *commandResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:message];
223
-
224
- [self.commandDelegate sendPluginResult:commandResult callbackId:self.callbackId];
+ if (self.callbackId != nil)
+ {
+ CDVPluginResult *commandResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:message];
225
+ [self.commandDelegate sendPluginResult:commandResult callbackId:self.callbackId];
226
+ }
227
228
229
-(void)failWithMessage:(NSString *)message withError:(NSError *)error
0 commit comments