-
Notifications
You must be signed in to change notification settings - Fork 467
On firstrun/install of app chcp.fetchUpdate() returns nothing does not fire my callback and gives me no error #63
Comments
When are you calling it? On the very first run plugin rejects all the requests from the JS module until he is ready to work. And this means it copied It should, probably, instead of silently rejecting the requests - cache them and execute when the time is right. |
I call it first thing in my onDeviceReady function, and thanks for quick reply. |
If this happens only on the very first launch - then I guess the problem as I described: plugin is not yet ready to receive requests. You actually don't need to call <chcp>
<auto-download enabled="false" />
<auto-install enabled="false" />
</chcp> But yes, probably that need's to be extended with some error or caching the request. |
They are already set to false, but will look into it :) |
If they are already set to false, then good, I was just suggesting ) |
All good I just put a listener on chcp_assetsInstalledOnExternalStorage after my onDeviceReady has been called, and set a localStorage item to let my app know where it was running from. thanks 👍 :) |
On firstrun/install of app chcp.fetchUpdate() returns nothing does not fire my callback and gives me no errors?
chcp.fetchUpdate(function(error,data){
console.log(error);
console.log(data);
});
Refreshing the page and or start/stopping the app and the callback works fine.
Any thoughts?
using
Cordova version: 5.4.1
cordova-hot-code-push-plugin 1.1.2
iOS platform:
Xcode 7.1.1
Build version 7B1005
The text was updated successfully, but these errors were encountered: