Page 1 of 1

phonegap plugin and onload event

Posted: Mon Jun 02, 2014 11:56 pm
by Andrew Peacock

Hi,
I know this is a bit out of your support area, but I'm looking for a point in the right direction and am wondering if anyone can help.

I've got a 3rd party plugin working, on an onClick even of a button.

However, I need it to work on pageLoad (or deviceReady maybe).

However, it looks like the cordova plugins are not initialised (in window.plugins) until after page load.

Does anyone know how to get them initialised and ready to use earlier in the page load process?

Regards,
Andy


phonegap plugin and onload event

Posted: Tue Jun 03, 2014 6:00 am
by Evgene Karachevtsev

Hello Andrew,

Any Phonegap plugin functionality you should use after "device ready" event.


phonegap plugin and onload event

Posted: Tue Jun 03, 2014 7:49 am
by Andrew Peacock

Thanks Evgene. I've got it working now. Appreciate your help,
Andy