I\'m having trouble here: I have the app set to not run in the background, and I\'m setting a dailyInterval localnotification using a localNotification plugin I found on git
A little bit better solution is something like this:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSArray *keyArray = [launchOptions allKeys];
if ([keyArray count] > 0) {
id option = [launchOptions objectForKey:[keyArray objectAtIndex:0]];
if ([option isKindOfClass:[NSURL class]]) {
NSURL *url = (NSURL *)option;
self.invokeString = [url absoluteString];
NSLog(@"ContactInbox launchOptions = %@",url);
}
}
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
If somebody knows what key PhoneGap expects to have for URL it's better to replace [keyArray objectAtIndex:0] part with actual key.