title: How to get Firebase InAppMessaging Instance ID programmatically
body: <p>Is there a way to get Firebase InApp Messaging programmatically? </p>
  
  <pre class="lang-swift prettyprint-override"><code>InstanceID.instanceID().instanceID {} // returns fcm token
  Messaging.messaging().fcmToken // returns fcm token 
  </code></pre>
  
  <p>We can get the InApp Messaging while enabling the debug mode argument, but I wonder if this is possible to get it programatically. </p>
  
  <p><a href="https://firebase.google.com/docs/in-app-messaging/get-started?authuser=2#get_your_apps_installation_id" rel="nofollow noreferrer">Firebase InApp Messaging Docs: iOS</a></p>