[iOS] index.html alerts on update install #87
Comments
@dylanvdmerwe That's bizarre! That is definitely not coming from the CodePush plugin, and it almost looks like the Cordova bridge is asking for a response to every native method call made from JS. Could you show an example of the CLI commands you are running to release an update to CodePush? |
I think I may have used the android www folder for an iOS update. Would this make a difference? Will try and see if this is the issue later. |
Yeah that would definitely make a difference :) This issue is likely a sign of a "bad" cordova.js file and/or bridge config, so if you accidentally sent an Android update to an iOS app, that would be a likely cause of this problem. |
Yeah this issue is resolved with a correct iOS update file. Not one from Android. |
Awesome! Thanks for confirming. |
@dylanvdmerwe What do you mean by using the Android |
@alizahid you cannot do a single codepush to both platforms - they are different. You need one for iOS and one for Android. |
Oh, I saw in the documentation that you can choose multiple platforms for one app, like:
I do remember a recommendation to not do that, though. @dylanvdmerwe So, you're suggesting I create multiple CodePush apps and then I can release from the same |
@alizahid, could you please look at #189? |
@sergey-akhalkov Thanks! |
On iOS I receive the following popups after an update is installed.
I thought this may be related to my CSP:
<meta http-equiv="Content-Security-Policy" content="default-src *; img-src 'self' * data: gap:; style-src 'self' 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'">
How can I prevent these popups from displaying?
The text was updated successfully, but these errors were encountered: