title: How to get FCMToken in Firebase on ios?
body: <p>As mentioned in <a href="https://firebase.google.com/docs/cloud-messaging/ios/client" rel="noreferrer">Firebase documentation</a> we can retrieve FCMToken as follows. </p>
  
  <pre><code>NSString *fcmToken = [FIRMessaging messaging].FCMToken;
  NSLog(@"FCM registration token: %@", fcmToken);
  </code></pre>
  
  <p>However above returns compile time error <code>Property 'FCMToken' not found on object of type 'FIRMessaging *'</code>.</p>
  
  <p>How to get FCMToken?</p>