Updating to Capacitor 6.0¶
Capacitor 6.0 is finally here and brings a lot of improvements! Make sure to check out the official announcement post from the Ionic team. In this article, you can find out what breaking changes have been made to the Capawesome plugins.
Plugins¶
The following plugin functionality has been modified or removed. Update your code accordingly.
More information can be found in the respective BREAKING.md file of each plugin.
Android Foreground Service¶
- You must specify appropriate foreground service types in your
AndroidManifest.xml(see Declare foreground services in your manifest and Request the foreground service permissions).
App Update¶
- The
currentVersionproperty has been replaced by thecurrentVersionCodeandcurrentVersionNameproperties in theAppUpdateInfointerface. - The
availableVersionproperty has been replaced by theavailableVersionCodeandavailableVersionNameproperties in theAppUpdateInfointerface.
File Picker¶
- The
multipleproperty has been replaced by a newlimitproperty in thePickFilesOptionsandPickMediaOptionsinterfaces. - The
Fileinterface has been replaced by thePickedFileinterface. - The default value of the
skipTranscodingproperty has been changed totrue.
Firebase Analytics¶
- The Firebase Javascript SDK has been updated to
10.9.0. - The Analytics component of the Firebase Android SDK has been updated to
20.5.1.
Firebase App¶
- The Firebase Javascript SDK has been updated to
10.9.0. - The Firebase iOS SDK has been updated to
10.24.0. - On Android, the
firebaseCommonVersionvariable has been updated to20.4.2.
Firebase App Check¶
- The Firebase Javascript SDK has been updated to
10.9.0. - The Firebase iOS SDK has been updated to
10.24.0. - On Android, the
firebaseAppCheckPlayIntegrityVersionvariable has been updated to17.1.2. - On Android, the
firebaseAppCheckDebugVersionvariable has been updated to17.1.2.
Firebase Authentication¶
- The Firebase Javascript SDK has been updated to
10.9.0. - The Firebase iOS SDK has been updated to
10.24.0. - On Android, the
firebaseAuthVersionvariable has been updated to22.3.1. - On Android, the
playServicesAuthVersionvariable has been updated to21.0.0. - On Android, the
facebookLoginVersionvariable has been updated to16.3.0.
Firebase Crashlytics¶
- The Firebase Javascript SDK has been updated to
10.9.0. - The Firebase iOS SDK has been updated to
10.24.0. - On Android, the
firebaseCrashlyticsVersionvariable has been updated to18.6.2.
Firebase Cloud Firestore¶
- The Firebase Javascript SDK has been updated to
10.9.0. - The Firebase iOS SDK has been updated to
10.24.0. - The
QueryDocumentSnapshotinterface has been replaced with theDocumentSnapshotinterface. - On Android, the
firebaseFirestoreVersionvariable has been updated to24.10.3.
Firebase Cloud Messaging¶
- The Firebase Javascript SDK has been updated to
10.9.0. - The Firebase iOS SDK has been updated to
10.24.0. - On Android, the
firebaseMessagingVersionvariable has been updated to23.4.1.
Firebase Cloud Storage¶
- The Firebase Javascript SDK has been updated to
10.9.0. - The Firebase iOS SDK has been updated to
10.24.0. - On Android, the
firebaseStorageVersionvariable has been updated to20.3.0.
Firebase Performance Monitoring¶
- The Firebase Javascript SDK has been updated to
10.9.0. - The Firebase iOS SDK has been updated to
10.24.0. - On Android, the
firebasePerfVersionvariable has been updated to20.5.2.
Firebase Remote Config¶
- The Firebase Javascript SDK has been updated to
10.9.0. - The Firebase iOS SDK has been updated to
10.24.0. - On Android, the
firebaseConfigVersionvariable has been updated to21.6.3.
ML Kit Barcode Scanning¶
- On Android, the
mlkitBarcodeScanningVersionvariable has been updated to17.2.0. - On Android, the
playServicesCodeScannerVersionvariable has been updated to16.1.0.
ML Kit Face Detection¶
- On Android, the
mlkitFaceDetectionVersionvariable has been updated to16.1.6.
ML Kit Face Mesh Detection¶
- On Android, the
mlkitFaceMeshDetectionVersionvariable has been updated to16.0.0-beta2.
ML Kit Selfie Segmentation¶
- On Android, the
mlkitSelfieSegmentationVersionvariable has been updated to16.0.0-beta5.
ML Kit Translation¶
- On Android, the
mlkitTranslateVersionvariable has been updated to17.0.2.
NFC¶
- The
techTypeproperty of theTransceiveOptionsinterface is now only available for iOS. On Android, theconnect(...)method must first be called to establish the connection to an NFC tag. Thetransceive(...)method can then be used to send and receive data. Finally, theclose(...)method must be called to terminate the connection.