Skip to content

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 country property has been replaced by the appId property in the OpenAppStoreOptions interface.

Cloudinary

  • On Android, the cloudinaryAndroidVersion variable has been updated to 3.0.2.

Firebase Analytics

  • The Firebase Javascript SDK has been updated to 11.2.0.
  • On Android, the firebaseAnalyticsVersion variable has been updated to 22.2.0.

Firebase App

  • The Firebase Javascript SDK has been updated to 11.2.0.
  • On Android, the firebaseCommonVersion variable has been updated to 21.0.0.

Firebase App Check

  • The Firebase Javascript SDK has been updated to 11.2.0.
  • On Android, the firebaseAppCheckPlayIntegrityVersion variable has been updated to 18.0.0.
  • On Android, the firebaseAppCheckDebugVersion variable has been updated to 18.0.0.

Firebase Authentication

  • The Firebase Javascript SDK has been updated to 11.2.0.
  • On Android, the facebookLoginVersion variable has been updated to 18.0.0.
  • On Android, the firebaseAuthVersion variable has been updated to 23.1.0.
  • On Android, the playServicesAuthVersion variable has been updated to 20.7.0.
  • On Android, the accessToken and serverAuthCode are now only requested when the scopes option 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 firebaseCrashlyticsVersion variable has been updated to 19.4.0.

Firebase Firestore

  • The Firebase Javascript SDK has been updated to 11.2.0.
  • On Android, the firebaseFirestoreVersion variable has been updated to 25.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 firebaseFunctionsVersion variable has been updated to 21.1.0.

Firebase Messaging

  • The Firebase Javascript SDK has been updated to 11.2.0.
  • On Android, the firebaseMessagingVersion variable has been updated to 24.1.0.

Firebase Performance

  • The Firebase Javascript SDK has been updated to 11.2.0.
  • On Android, the firebasePerfVersion variable has been updated to 21.0.4.
  • The web implementation now throws an error when a trace is not found for a given traceName. 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 firebaseConfigVersion variable has been updated to 22.1.0.

Firebase Storage

  • The Firebase Javascript SDK has been updated to 11.2.0.
  • On Android, the firebaseStorageVersion variable has been updated to 21.0.1.

Live Update

  • The getBundle() method has been replaced by the getCurrentBundle() method.
  • The setBundle() method has been replaced by the setNextBundle() method.
  • The checksum property has been removed from the DownloadBundleOptions interface. The server should now return a X-Checksum header instead.
  • The enabled configuration option has been removed. The plugin is now always enabled.
  • The location configuration option has been replaced by the serverDomain configuration option.
  • The default value of the readyTimeout configuration option has been changed from 10000 to 0 to disable the timeout by default.
  • The resetOnUpdate configuration option has been removed. Capacitor always resets the app to the default bundle during a native update.

ML Kit Barcode Scanning

  • On Android, the mlkitBarcodeScanningVersion variable has been updated to 17.3.0.
  • on Android, the image resolution used for barcode scanning has been increased to 1280x720 to improve the barcode scanning performance and be consistent with the iOS implementation. Previously, the resolution was 640x480.
  • On iOS, make sure to set the deployment target in your ios/App/Podfile to at least 15.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-torch package.
  • The barcodeScanned event has been replaced by the barcodesScanned event. The event payload now contains an array of Barcode objects instead of a single Barcode object since multiple barcodes can be scanned at the same time.

ML Face Detection

  • On Android, the mlkitFaceDetectionVersion variable has been updated to 16.1.7.
  • On iOS, make sure to set the deployment target in your ios/App/Podfile to at least 15.5.

ML Selfie Segmentation

  • On Android, the mlkitSelfieSegmentationVersion variable has been updated to 16.0.0-beta6.
  • On iOS, make sure to set the deployment target in your ios/App/Podfile to at least 15.5.

ML Translation

  • On Android, the mlkitTranslateVersion variable has been updated to 17.0.3.
  • On iOS, make sure to set the deployment target in your ios/App/Podfile to at least 15.5.

NFC

  • On iOS, the id property of the NfcTag interface was returned reversed for ISO 15693 tags. This issue has been fixed in this version. The id property 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 posthogVersion variable has been updated to 3.10.0.