Updating to Capacitor 7.0¶
Capacitor 7.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.
App Update¶
- The
countryproperty has been replaced by theappIdproperty in theOpenAppStoreOptionsinterface.
Cloudinary¶
- On Android, the
cloudinaryAndroidVersionvariable has been updated to3.0.2.
Firebase Analytics¶
- The Firebase Javascript SDK has been updated to
11.2.0. - On Android, the
firebaseAnalyticsVersionvariable has been updated to22.2.0.
Firebase App¶
- The Firebase Javascript SDK has been updated to
11.2.0. - On Android, the
firebaseCommonVersionvariable has been updated to21.0.0.
Firebase App Check¶
- The Firebase Javascript SDK has been updated to
11.2.0. - On Android, the
firebaseAppCheckPlayIntegrityVersionvariable has been updated to18.0.0. - On Android, the
firebaseAppCheckDebugVersionvariable has been updated to18.0.0.
Firebase Authentication¶
- The Firebase Javascript SDK has been updated to
11.2.0. - On Android, the
facebookLoginVersionvariable has been updated to18.0.0. - On Android, the
firebaseAuthVersionvariable has been updated to23.1.0. - On Android, the
playServicesAuthVersionvariable has been updated to20.7.0. - On Android, the
accessTokenandserverAuthCodeare now only requested when thescopesoption is set. - Error codes are now prefixed with
auth/to be consistent with the Firebase Web SDK.
Firebase Crashlytics¶
- The Firebase Javascript SDK has been updated to
11.2.0. - On Android, the
firebaseCrashlyticsVersionvariable has been updated to19.4.0.
Firebase Firestore¶
- The Firebase Javascript SDK has been updated to
11.2.0. - On Android, the
firebaseFirestoreVersionvariable has been updated to25.1.1. - Error codes are now prefixed with
firestore/to be consistent with the Firebase Web SDK.
Firebase Functions¶
- The Firebase Javascript SDK has been updated to
11.2.0. - On Android, the
firebaseFunctionsVersionvariable has been updated to21.1.0.
Firebase Messaging¶
- The Firebase Javascript SDK has been updated to
11.2.0. - On Android, the
firebaseMessagingVersionvariable has been updated to24.1.0.
Firebase Performance¶
- The Firebase Javascript SDK has been updated to
11.2.0. - On Android, the
firebasePerfVersionvariable has been updated to21.0.4. - The web implementation now throws an error when a
traceis not found for a giventraceName. This behavior was already in place on iOS and Android in earlier versions.
Firebase Remote Config¶
- The Firebase Javascript SDK has been updated to
11.2.0. - On Android, the
firebaseConfigVersionvariable has been updated to22.1.0.
Firebase Storage¶
- The Firebase Javascript SDK has been updated to
11.2.0. - On Android, the
firebaseStorageVersionvariable has been updated to21.0.1.
Live Update¶
- The
getBundle()method has been replaced by thegetCurrentBundle()method. - The
setBundle()method has been replaced by thesetNextBundle()method. - The
checksumproperty has been removed from theDownloadBundleOptionsinterface. The server should now return aX-Checksumheader instead. - The
enabledconfiguration option has been removed. The plugin is now always enabled. - The
locationconfiguration option has been replaced by theserverDomainconfiguration option. - The default value of the
readyTimeoutconfiguration option has been changed from10000to0to disable the timeout by default. - The
resetOnUpdateconfiguration option has been removed. Capacitor always resets the app to the default bundle during a native update.
ML Kit Barcode Scanning¶
- On Android, the
mlkitBarcodeScanningVersionvariable has been updated to17.3.0. - on Android, the image resolution used for barcode scanning has been increased to
1280x720to improve the barcode scanning performance and be consistent with the iOS implementation. Previously, the resolution was640x480. - On iOS, make sure to set the deployment target in your
ios/App/Podfileto at least15.5. - All the methods related to the torch have been moved into a separate Torch plugin. If you want to use the torch, just install the
@capawesome/capacitor-torchpackage. - The
barcodeScannedevent has been replaced by thebarcodesScannedevent. The event payload now contains an array ofBarcodeobjects instead of a singleBarcodeobject since multiple barcodes can be scanned at the same time.
ML Face Detection¶
- On Android, the
mlkitFaceDetectionVersionvariable has been updated to16.1.7. - On iOS, make sure to set the deployment target in your
ios/App/Podfileto at least15.5.
ML Selfie Segmentation¶
- On Android, the
mlkitSelfieSegmentationVersionvariable has been updated to16.0.0-beta6. - On iOS, make sure to set the deployment target in your
ios/App/Podfileto at least15.5.
ML Translation¶
- On Android, the
mlkitTranslateVersionvariable has been updated to17.0.3. - On iOS, make sure to set the deployment target in your
ios/App/Podfileto at least15.5.
NFC¶
- On iOS, the
idproperty of theNfcTaginterface was returned reversed for ISO 15693 tags. This issue has been fixed in this version. Theidproperty is now returned correctly and behaves the same way as on Android. More information can be found in the discussion #200.
Posthog¶
- On Android, the
posthogVersionvariable has been updated to3.10.0.