Jump to content

New Cocoon.io with Cordova plugins - deviceready event


Wraithi
 Share

Recommended Posts

Hi,

 

can anyone advise me how to solve this issue? 

 

New beta version of CocoonJS (www.cocoon.io) uses Cordova plugins. It is therefore important starts panda.js after deviceready event.

Panda.js starts automatically before the deviceready event. Any idea how I can force panda.js starts after this event? 

(I use panda.js 1.13.1)

 

https://cordova.apache.org/docs/en/4.0.0/cordova_events_events.md.html#deviceready

Link to comment
Share on other sites

I have zero experience with Panda.js :). But if it really does not have explicit init function, nothing stops you from dynamically loading any scripts after device ready event.

 

Quick googling suggests there are no issues with creating SCRIPT tags at runtime under Cordova:
https://arvinbadiola.wordpress.com/2014/08/16/dynamically-loading-stylesheets-and-scripts-in-cordova-with-ember-js/

Link to comment
Share on other sites

  • 2 weeks later...

I have zero experience with Panda.js :). But if it really does not have explicit init function, nothing stops you from dynamically loading any scripts after device ready event.

 

Quick googling suggests there are no issues with creating SCRIPT tags at runtime under Cordova:

https://arvinbadiola.wordpress.com/2014/08/16/dynamically-loading-stylesheets-and-scripts-in-cordova-with-ember-js/

 

 

Thank you for your response. This could be a way, but Phaser has built-in function that solves this. I am seeking a similar solution for Panda.js.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...