We have an Ionic project that we would like to publish in Google Play. However, we would like to install the Ionic deploy plugin in order to update the application on client’s devices easily. However, after installing the plugin the expected behavior is not met. I will now try to explain the steps I followed in order to give a good overview:
Look at IonicPro Dashboard/Deploy/Destinations.
Copy the installation instructions:
Run the instructions in terminal:
ionic deploy add
–app-id=“IonicAppId”
–channel-name=“Production”
–update-method=“auto”
I noticed that there is a message “Appflow deploy manifest written to ./www/pro-manifest.json”, however after I checked it turned out that there is no such file in the ./www directory. So, basically the only change of the installation is this line in the package.json file:
“cordova-plugin-ionic”: “5.4.7”
I pushed the changes to IonicPro and build and .apk file there. Also installed the application on an Android device.
I did some small HTML changes and pushed to IonicPro.
Created a web build from last commit and assigned it to Production channel.
Checked the app on the android device - changes are not there.
Last but not least, following the steps above I created the .apk file myself using AndroidStudio but the result was the same - live update does not work.
I would appreciate if anyone has an idea what is causing the issue.
We have the same problem. In our case we have tried IOS.
We implemented all the instructions from the appflow documentation and the step you listed above. however => no changes in the end result.
This could be an issue with the live update plugin configuration used or any missing variables.
The best way to figure out what’s going on is to install the app on a device and call the following methods from the chrome / safari inspector. Call these methods from a fresh install of your Appflow native build.
IonicCordova.deploy.getConfiguration()
This will display the plugin config including the configured channel for this install.
IonicCordova.deploy.checkForUpdate()
This will tell us if an update is available.
IonicCordova.deploy.getCurrentVersion()
This will return all the details of the currently running deploy update including the job id of the web build deployed. This really helps to zero in on the specific update that’s causing a problem.
If you are not sure how to enable the chrome inspector refer the docs on the same here.
If the above does not help, feel free to contact Appflow support with the results and we can take a closer look.
This could be a misconfiguration of the live update channel or any other values. It would be helpful for us to take a closer look at your dashboard and project configuration.
I would request you to get in touch with our Appflow support and be sure to add your App Id and other details.