Commit 87f29b67 by Sebastián Katzer

Fix didReceiveLocalNotification: call within didFinishLaunchingWithOptions:

parent 208d13ea
......@@ -316,7 +316,7 @@ NSString *const kAPP_LOCALNOTIFICATION = @"APP_LOCALNOTIFICATION";
if (localNotification)
{
[self didReceiveLocalNotification:notification];
[self didReceiveLocalNotification:[NSNotification notificationWithName:CDVLocalNotification object:localNotification]];
}
}
......@@ -355,7 +355,7 @@ NSString *const kAPP_LOCALNOTIFICATION = @"APP_LOCALNOTIFICATION";
* @param {String} id The ID of the notification
* @param {String} json A custom (JSON) string
*/
- (void) fireEvent:(NSString*) event id:(NSString*) id json:(NSString*) json
- (void) fireEvent:(NSString*)event id:(NSString*)id json:(NSString*)json
{
UIApplicationState state = [[UIApplication sharedApplication] applicationState];
bool isActive = state == UIApplicationStateActive;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment