Re: CordovaPlugin intialized immediately

2014-07-10 Thread Jan Velecký
I checked onload on Android, and initialize is properly called after application start.

Re: CordovaPlugin intialized immediately

2014-07-09 Thread Ally Ogilvie
Hey thought I'd give some pro-tips to @Jan but also for anyone else who might be listening. I'll blog this post after cleaning it up a little, additions are be welcome. There are several ways you can get an iOS plugin class to boot with, or before the WebView is created. Here are my favs: - (void

Re: CordovaPlugin intialized immediately

2014-07-09 Thread Jan Velecký
Yay! Nevertheless, in source code there are old initialize method, which is deprecated and new method, which cannot be overridden, so it is not executed, then I must use deprecated method. O_o

Re: CordovaPlugin intialized immediately

2014-07-09 Thread Shazron
It is still there, but in the Platform specific Plugin Guide: http://cordova.apache.org/docs/en/edge/guide_platforms_android_plugin.md.html#Android%20Plugins On Wed, Jul 9, 2014 at 11:56 AM, Shazron wrote: > Yup. Should be supported on most platforms, but curiously undocumented(!): > http://cordo

Re: CordovaPlugin intialized immediately

2014-07-09 Thread Shazron
Yup. Should be supported on most platforms, but curiously undocumented(!): http://cordova.apache.org/docs/en/3.5.0/plugin_ref_spec.md.html#Plugin%20Specification It was previously documented here for example: http://cordova.apache.org/docs/en/3.1.0/guide_platforms_android_plugin.md.html Current p

Re: CordovaPlugin intialized immediately

2014-07-09 Thread Anis KADRI
isn't there a onload=true for config.xml ? On Wed, Jul 9, 2014 at 2:40 PM, Jan Velecký wrote: > Dear devs, > I think, there can be a new kind of CordovaPlugin with one huge difference. > This kind of Plugin should start immediately after application start. This > has benefits in these situation