Ionic deploy is not working after the first application update - ionic-framework

I'm using the simple example of Deploy from here: http://docs.ionic.io/docs/deploy-quick-start. Its works, but only the first time. When app is updated the first time, I can't update it anymore, I'm getting error: IONIC_DEPLOY_MISSING_PACKAGE
But I don't change code after the first update, just deploy new version with ionic upload.

Related

Create or Run Flutter Project Offline or without internet

Is it possible for me to create new Flutter project offline?
Is it also possible to Run my already created application offline?
I didn't add any new package(s) to my pubspec.yaml, just plain project I created before.
I tried to create new Flutter project without internet using Terminal and Flutter New Project from VSCode, but it stuck at creating new project and retrying multiple times.
The same goes for my already created projects.
Is it possible to bypass that?
enable this VS code setting shown in this screenshot, here's a video to follow steps: link to video.
creating a new project and running it offline is not a problem. I just tried it by turning off my wifi/network and it worked fine for me.
but if you have existing project it wont work because every time it has to check for gradle build.

Flutter old app upgrading to use it today

I've found this code for flutter home automation application.
but it was wrote in an older version of flutter, which i tried many times to start it but i couldn't make it,
last best thing that i have ever came to was that i could could mergrated the application to Android X and the application was starting but when i try to sign up a new mail inside it it says,
Error fetching data.
It dosen't use Firebase to store email it just uses a SQL package.
if any one can help to git the code and upgrade it for me to use it i will be very thankful :D.
Here is the link,
https://github.com/mlinarevicMateo/home-automation-flutter
The app is dependant on a webservice to run. Check lib/utils/network_util.dart. So you won't be able to get it run unless you write a new backend.
As the project was created in an older version of flutter you might be missing some latest flutter modules you can add those to your existing project by running this command within your project directory.
flutter create .

After twice runinng the app in IDE, compiler shows the updated code version of app

When I run updated code of my application, it first builds the previous version of my app and then on rebuilding it, it runs the updated version of my app. Where the problem located? And as well, I'm a new bie at flutter...
Look of app on first run
Look of app after re-running
[]
How can I always get the updated code version of app on first run?
Run Flutter clean command in the terminal.
Actually we must remove/clean the cache of previous App so for that sake, We can run Flutter clean command in the terminal to avoid this problem.

Create ionic4 project after ionic5 release

As ionic5 is now released, so now when I use this command ionic start myApp blank --type=angular ionic5 app is created, I can confirm this from ionic info command, I am wondering how can I create ionic4 project. The reason behind creating ionic4 project is I have one app in ionic3 and I want to upgrade that app to first in ionic4 and then to ionic5 instead of directly going to latest one because I don't yet know the breaking changes in ionic5 yet and I haven't yet worked on it as well
okay, I got ionic4 app by first creating project with command sudo ionic start myApp blank --type=angular and then when project was created, then using sudo npm i #ionic/angular#^4.0.0 inside app directory to update the ionic info, this can be confirmed both via package.json and ionic info command

How to get Ionic Pro Deploy to download latest version on first app open

Problem
When I release a new version to the production channel in Ionic Pro Deploy (Channels) then I have to cycle my app twice in order to get the latest version. Even worse, on the first cycle my app reverts back to a far earlier version for some reason.
What I mean by cycling is, starting from a state where the application is shut down and not open, I open the app, wait for the splash screen to go away and app to be ready, and then close the app.
Question
How do I get my app to download the latest version on the very next time I open the Ionic app following my production release?
Plugin configuration
I used the plugin config from the dashboard.ionicjs.com page:
cordova plugin add cordova-plugin-ionic --save \
--variable APP_ID="[myappid]" \
--variable CHANNEL_NAME="Production" \
--variable UPDATE_METHOD="background"
Execute the command you already showed but set UPDATE_METHOD to "auto"
If you wand more control over your updating methods have a look at this:
https://ionicframework.com/docs/pro/deploy/plugin-api.html
In my case, live deploy worked correctly on a "blank" Ionic project. Live deploy also worked correctly on "my" app on iOS but not on Android.
I followed the follow steps and successfully fixed Android. However, during this process iOS suddenly had the same problem (would apply update on app install/close/open).
Set versions as per Ionic support. IonicPro live deploy currently requires these versions. Ionic are in the process of fixing this dependency:
"cordova-plugin-ionic-webview": "1.1.19",
"cordova-plugin-ionic": "4.1.7",
Install a new version of "blank" project. Update my app to use the same npm plugin versions (some of my app plugins were old).
Remove/add android platform. My hunch is this is what ultimately resolved the issue.
I wanted to try a remove/add ios platform to see if that also resolved the issue on iOS. But it was less work to ultimately switch over to IonicPro rather than re-config the local build setup.
Live deploy worked correctly on both iOS and Android after creating binaries in IonicPro.