katzer / cordova-plugin-app-event

Cordova App-Event Plugin
Apache License 2.0
26 stars 23 forks source link

Complete basic example request #7

Closed nicoabie closed 8 years ago

nicoabie commented 8 years ago

Hi, first of all thanks for the plugin. It seems just what I need.

I implemented the steps for didFinishLaunchingWithOptions but this is not being called when application first starts. The xcode native handler does.

It should be called right? Could you create a basic example?

Thanks in advance

nicoabie commented 8 years ago

I have some updates:

I included <param name="onload" value="true" /> on the plugin and the method gets called.

Now the question is:

is this the correct way to spy on launchOptions

`- (void) didFinishLaunchingWithOptions:(NSNotification *)notification {

NSDictionary* launchOptions = [notification userInfo];

if (launchOptions != NULL && [launchOptions objectForKey:UIApplicationLaunchOptionsLocationKey]) {
   NSLog(@"- didFinishLaunchingWithOptions:  %@", launchOptions); 
}

}`

Thanks