i am currently playing arround with an ios8 todayview extension.
i call [self.extensionContext openURL:url completionHandler:nil];
to open the app containing the extension.
in some cases: about 1 out of 10 launches (app closed) - the - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
gets called more than once.
i tried working arround with a bool value BOOL appStarted
setting it to YES
at the end of the didFinishLaunchingWithOptions
.
and added an alertview at the beginning of the didFinishLaunchingWithOptions
- but it seems that the function is called more than once and the bool is always NO
any idea?
regards
i actually used a 3rd party source closed library wich seems to mangle the NSRunloop - moved the initialization code out of "didFinishLaunchingWithOptions" fixed the problem