ios - Phonegap Plugin - append lines to app delegate -


i'm developing phonegap plugin. far good. append 1 or 2 methods appdelegate.m through config.xml populated developer automatically. possible?

thanks.

take push plugin, use objective-c category appdelegate

https://github.com/phonegap-build/pushplugin

if want notified when app becomes active don't need change on appdelegate, put on plugin:

[[nsnotificationcenter defaultcenter] addobserver:self selector:@selector(onappdidbecomeactive:) name:uiapplicationdidbecomeactivenotification object:nil];   - (void)onappdidbecomeactive:(nsnotification*)notification {       nslog(@"%@",@"applicationdidbecomeactive");  } 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -