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

c# - OpenXML hanging while writing elements -

php - regexp cyrillic filename not matches -

sql - Select Query has unexpected multiple records (MS Access) -