As mentioned in the Firebase documentation , we can get FCMToken as follows.
NSString *fcmToken = [FIRMessaging messaging].FCMToken; NSLog(@"FCM registration token: %@", fcmToken);
However, the above returns a compile-time error Property 'FCMToken' not found on object of type 'FIRMessaging *' .
How to get FCMToken?
isuru source share