قالب وردپرس درنا توس
Home / IOS Development / GCM to FCM in iOS

GCM to FCM in iOS



I use the FirebaseInstanceID framework to retrieve the token.

Current implementation is as follows:

  InstanceID.instanceID (). Token (withAuthorizedEntity:  scope: "GCM", options: zero) {token, error) in
}

My only requirement is to get the token from Firebase only for authentication purposes.

This implementation does not require adding GoogleService-Info.plist and other framework conditions

The problem is that Google has depressed GCM.

If I change scope from "GCM" to "FCM" it returns me an error 1001

.
Also, if I switch with AuthorizedEntity from to it gives me the wrong 1001.

So is it in any way using the FCM just to retrieve the token? As I have no other requirement to send push notifications. TIA


Source link