title: Xamarin Form: Android using Firebase Cloud Messaging not receiving message
body: <p>I have made the Firebase Cloud Message Notification working even work through the Notification Hub from Azure. The time I can't receive the message is when I try to re-run the application.</p>
  
  <p>Process:
  1) Fresh install the application with Visual Studio IDE
  2) Stop the debugger<br>
  3) Debug and run the application again through Visual Studio IDE
  4) Send a test message through FCM Console</p>
  
  <p>If I am not doing 3, I still can receive the message even if the application is in background</p>
  
  <pre><code>   LoadApplication(new App());
  
              FirebaseOptions options = new FirebaseOptions.Builder()
              .SetApplicationId(GetString(Resource.String.fcmAppId))
              .SetApiKey(GetString(Resource.String.fcmApiKey))
              .SetGcmSenderId(GetString(Resource.String.fcmGCMSenderId))
              .Build();
  
              FirebaseApp.InitializeApp(Android.App.Application.Context, options); 
  </code></pre>
  
  <p>?</p>
  
  <pre><code>    public class MyFirebaseInstanceIdService : FirebaseInstanceIdService
  {
      const string TAG = "MyFirebaseInstanceIdService";
  
      public override void OnTokenRefresh()
      {
          var refreshedToken = FirebaseInstanceId.Instance.Token;
          Settings.NotificationToken = refreshedToken;
          Android.Util.Log.Debug(TAG, "Refreshed token: " + refreshedToken);
          SendRegistrationToServer(refreshedToken);
      }
  
      void SendRegistrationToServer(string token)
      {
      }
  }
  </code></pre>
  
  <p>Initially I thought it has a different token but is the same.</p>
  
  <p>Message from Azure Portal:</p>
  
  <p>The token obtained from the token provider is wrong.</p>