Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

phonegap plugin and onload event

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

phonegap plugin and onload event

Hello Andrew,

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

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

phonegap plugin and onload event

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

Return to “Issues”