@capacitor-community/fcm 7.1.1 → 7.1.2
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.
- package/README.md +1 -1
- package/ios/Plugin/Plugin.swift +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -127,7 +127,7 @@ Download the `google-services.json` file and copy it to `android/app/` directory
|
|
|
127
127
|
- apple
|
|
128
128
|
- create an app identifier (apple site)
|
|
129
129
|
- add push notifications
|
|
130
|
-
- add signing request (https://
|
|
130
|
+
- add signing request (https://developer.apple.com/help/account/certificates/create-a-certificate-signing-request)
|
|
131
131
|
- generate an APN key and then note down the ID displayed. also download the p8 file (https://fluffy.es/p8-push-notification/)
|
|
132
132
|
- firebase
|
|
133
133
|
- add the downloaded p8 file to firebase settings with noted key ID and the account team ID
|
package/ios/Plugin/Plugin.swift
CHANGED
|
@@ -17,9 +17,8 @@ public class FCMPlugin: CAPPlugin, MessagingDelegate {
|
|
|
17
17
|
var fcmToken: String?
|
|
18
18
|
|
|
19
19
|
override public func load() {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
20
|
+
FirebaseApp.configure()
|
|
21
|
+
|
|
23
22
|
Messaging.messaging().delegate = self
|
|
24
23
|
NotificationCenter.default.addObserver(self, selector: #selector(self.didRegisterWithToken(notification:)), name: .capacitorDidRegisterForRemoteNotifications, object: nil)
|
|
25
24
|
}
|