title: Get custom data from fcm in xamarin ios
body: <p>I am working with xamarin ios and firebase cloud messaging.</p>
  <p>This is my fcm request body.</p>
  <pre><code>{
    &quot;registration_ids&quot;: [&quot;token1&quot;,&quot;token2&quot;],
    &quot;notification&quot;: {
      &quot;sound&quot;: &quot;default&quot;,
      &quot;body&quot;: &quot;test body&quot;,
      &quot;title&quot;: &quot;test with notification&quot;,
      &quot;content_available&quot;: true,
      &quot;priority&quot;: &quot;high&quot;
    },
    &quot;data&quot;: {
      &quot;notificationType&quot; : &quot;notification&quot;
    }
  }
  </code></pre>
  <p>I want to retrieve &quot;notificationType&quot; in DidReceiveRemoteNotification method.</p>
  <p>This is my method :</p>
  <pre><code>        [Export(&quot;application:didReceiveRemoteNotification:fetchCompletionHandler:&quot;)]
          [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
          [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
          public override void DidReceiveRemoteNotification(UIApplication application, NSDictionary userInfo, Action&lt;UIBackgroundFetchResult&gt; completionHandler)
          {
              UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
  
              NSDictionary data = userInfo.ObjectForKey(new NSString(&quot;data&quot;)) as NSDictionary;
              string notificationType = Convert.ToString(data[new NSString(&quot;notificationType&quot;)] as NSString);
          }    
  </code></pre>
  <p>Let me know what I need to change here?
  Thanks.</p>