Finally I got the message that live update cannot make with free account from Mr. Bryant Feld from Ionic Support. Please check your Ionic account if you cannot use live updates feature.
Actually, in the pricing page (https://ionicframework.com/pricing/compare), the free plan gives us Deploy 100 live updates / mo , but it is totally not true. You have to pay if you want to try live update feature.
I think it is weired. What version of Ionic are you using?
If you once deploy add, then you cannot ionic deploy add again with error [ERROR] Appflow Deploy plugin is already installed.. If you want to reset the configuration after ionic deploy add, then you have to ionic deploy configure.
You can check if the key value of the string.xml is valid by searching the keyword through the android project files. For my case, I can find the lines like follow in the IonicCordovaCommon.java.
yes I do have that line in IonicCordovaCommon.java.
you’re right, I did ionic deploy add with flags once, but did not work the first time. So I revert my commit and do another one this time without those flags still no luck.
here’s my flow.
Ionic build
npx cap copy
run in on my device
make changes and push it to ionic master branch
in the dashboard, I web build that commit to Master channel
then I go back to my app and close it back open it back.
If you have line like j.put("updateMethod", getStringResourceByName("ionic_update_method"));, it means that your string.xml must have the value with key ionic_update_method not ionUpdateMethod. The key with camel case is somewhat weird. I’d like you to check the key name mentioned in the IonicCordovaCommon.java line by line. (If there is value missed, then your preference setup will not be completed. You can check about this in the logcat while your debugging with Android Studio.)
Also, I recommend you just put the following value in your string.xml manually. I guess following 6 values are related to the live update.
I am not pretty sure, but you can also guess that the default live update is done in background. It is not blocking process. I think the time to check and download the update is different for the environment like network status or something.
If you want to check for live update during the splash screen, then you’d better make your own splash screen and check the live update manually.