which version is/are suitable for a production app for ionic CLI and Ionic framework? - ionic-framework

As ionic 4 is released, I am wondering if I should start my new project in ionic 4 and ionic 4.9 (CLI) or any stable version you guys would suggest to prevent any issues ?

I think you can start your project with Ionic 4.0. With this final release, your app will perform better than version 3. Your doubt is good because there are still some bugs this is release but Ionic version 4.0 will allow you to update your application easily with the newer version. Ionic Framework team is working really hard for bug-free Ionic 4.0.

Related

How to create an Ionic v6 Project based on Angular

In versions of the Ionic framework, after Ionic v2, an Ionic v3 Angular project can be created by setting --type=ionic-angular e.g.
ionic start MyApp blank --type=ionic-angular
So even if Ionic v5 is installed the above command would create an Ionic v3 Angular project.
My question is how can I always create an Ionic v6 Angular project, even if I install the latest version of Ionic in 6 months time? E.g. When Ionic v7 is released will there be a way to create an Ionic v6 Angular project?
It will not change, it will stay the same as you posted.
You can force it by installing #ionic/angular version to current version in your package.json file.
However, Ionic is a very unstable framework even after 10 years. Every time there is a new release, old plugins completely get messed up. And you need to update plugins to stay in sync with iOS/Android updates. I have wasted so many hours every time there is a new Ionic or Capacitor release. The process is never straightforward.

Ionic versions - understanding difference between ionic cli version and ionic core version

I am starting to work on an existing Ionic 4 application. In that project #ionic/core version is 4.8.1. To start, I installed ionic CLI and noticed its version to be 5.4.15. I was not able to find easily if I can install an older ionic CLI version.
However, I feel CLI version and the application version need not be the same always. So, now, I would like to know how these things are related. Also, for me to run my existing project, can I use the same version of ionic CLI.
I wanted to mention that all ionic-native/**** references are 5.10.0 which I think should fine as #ionic/core and #ionic/angular is the version which says what my ionic project version is.

Is IONIC 5 stable to start a mobile application?

Am confused to start a project in ionic on which version?
Before answering this please check date of the question asked.I dont want to make it a long tread
As stated here and here:
The 5.0.0 is only for the CLI commands, NOT the framework itself. Ionic team gives you commands like start and generate which are wrappers on the angular CLI commands. This update doesn’t not affect your apps
The update should not affect your mobile app building.
UPDATE 04/2020
Version 5 of the ionic framework has been released. You can find all the information regarding the new version here and here.
Ionic version 5.0.0-beta.1 still, in the Pre-release stage, I think they planned to release this version at the beginning of the new year.
you can read more about ionic releases and versions in their repo here

Migration from ionic beta 13 to beta 14

What are the best possible ways to migrate my project developed in ionic beta 13 version to the latest release of ionic beta 14?
I recommend to review the changelog of ionic https://github.com/driftyco/ionic/blob/master/CHANGELOG.md and the migration guide from AngularJS 1.2 to 1.3 (since the underlying AngularJS version was bumped with beta14 of ionic).
The Angular migration guide is located here: https://docs.angularjs.org/guide/migration
For most projects, the two commands that you'd want to use to get Ionic up to date are:
First, make sure your CLI is up to date:
sudo npm install -g ionic
Second, update the project libraries:
ionic lib update
For advanced users, the links shared in other answers will be of great help.

Upgrading Cordova Framework

I was having the same issue with respect to receiving an error code 4 when trying to add a contact on my device running on iOS 6.1 (although it worked on the simulators). In reading a similar post (Phonegap ContactError when saving contact on iOS 6) I saw that you should update the Cordova framework to 2.0+ to accomodate for iOS 6. I updated Xcode to 4.6, but was not sure how to go about upgrading Cordova (or updating its integration withing XCode). I'm currently running on version 1.7.0 for cordova and downloaded the 2.5 release. Is the upgrade incremental or can I make a version jump? Can anyone guide me on how to go about upgrading my Cordova framework version? Thanks in advance.
From Cordova 1.7 to Cordova 2.5, there are no migration path. I would recommend to:
Backup your full mac os system
Uninstall Cordova 1.7
Install Cordova 2.5
Create a new XCode project according the 2.5 cordova tutorial
Copy and paste your html5 code from your old to your new project
Fix the issues
It is painful, but it is a clean migration path.