@capacitor-community/fcm 7.1.2 → 7.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,8 +17,9 @@ public class FCMPlugin: CAPPlugin, MessagingDelegate {
17
17
  var fcmToken: String?
18
18
 
19
19
  override public func load() {
20
- FirebaseApp.configure()
21
-
20
+ if FirebaseApp.app() == nil {
21
+ FirebaseApp.configure()
22
+ }
22
23
  Messaging.messaging().delegate = self
23
24
  NotificationCenter.default.addObserver(self, selector: #selector(self.didRegisterWithToken(notification:)), name: .capacitorDidRegisterForRemoteNotifications, object: nil)
24
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor-community/fcm",
3
- "version": "7.1.2",
3
+ "version": "7.1.3",
4
4
  "description": "Enable Firebase Cloud Messaging features for Capacitor apps",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",