I have created and app with Ionic Appflow and wanted to use live update feature on this.
I got below error on console and live updates are not reflecting in app after deploying build.
Failed to load https://api.ionicjs.com/apps/--app-id=fxxxxxxx%20/channels/check-device: Response for preflight does not have HTTP ok status.
Steps I followed:
Set up Ionic Deploy with command
ionic deploy add \--app-id="5xxxxxxx" \--channel-name="Production" \--update-method="background"
In package.json file under plugins it got added as below:
“cordova-plugin-ionic”: {
“APP_ID”: “–app-id=“5xxxxxxx” \”,
“CHANNEL_NAME”: “Production”,
“UPDATE_METHOD”: “background”,
“MAX_STORE”: “2”,
“MIN_BACKGROUND_DURATION”: “30”,
“UPDATE_API”: “https://api.ionicjs.com”
}
Please let me know what could be the cause or missed any step?
Thanks,