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
currentVersion
property has been replaced by thecurrentVersionCode
andcurrentVersionName
properties in theAppUpdateInfo
interface. - The
availableVersion
property has been replaced by theavailableVersionCode
andavailableVersionName
properties in theAppUpdateInfo
interface.
File Picker¶
- The
multiple
property has been replaced by a newlimit
property in thePickFilesOptions
andPickMediaOptions
interfaces. - The
File
interface has been replaced by thePickedFile
interface. - The default value of the
skipTranscoding
property 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
firebaseCommonVersion
variable 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
firebaseAppCheckPlayIntegrityVersion
variable has been updated to17.1.2
. - On Android, the
firebaseAppCheckDebugVersion
variable 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
firebaseAuthVersion
variable has been updated to22.3.1
. - On Android, the
playServicesAuthVersion
variable has been updated to21.0.0
. - On Android, the
facebookLoginVersion
variable 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
firebaseCrashlyticsVersion
variable 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
QueryDocumentSnapshot
interface has been replaced with theDocumentSnapshot
interface. - On Android, the
firebaseFirestoreVersion
variable 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
firebaseMessagingVersion
variable 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
firebaseStorageVersion
variable 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
firebasePerfVersion
variable 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
firebaseConfigVersion
variable has been updated to21.6.3
.
ML Kit Barcode Scanning¶
- On Android, the
mlkitBarcodeScanningVersion
variable has been updated to17.2.0
. - On Android, the
playServicesCodeScannerVersion
variable has been updated to16.1.0
.
ML Kit Face Detection¶
- On Android, the
mlkitFaceDetectionVersion
variable has been updated to16.1.6
.
ML Kit Face Mesh Detection¶
- On Android, the
mlkitFaceMeshDetectionVersion
variable has been updated to16.0.0-beta2
.
ML Kit Selfie Segmentation¶
- On Android, the
mlkitSelfieSegmentationVersion
variable has been updated to16.0.0-beta5
.
ML Kit Translation¶
- On Android, the
mlkitTranslateVersion
variable has been updated to17.0.2
.
NFC¶
- The
techType
property of theTransceiveOptions
interface 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.