title: FCM iOS device token not working in aws sns push notification
body: <p>I created an application in <code>aws</code> <code>sns</code> for <code>Apple Development</code>, used <code>p12</code> file for credentials.
  I'm using <code>cordova</code> app with <code>phone-gap</code>.</p>
  
  <p>Formats:</p>
  
  <pre><code># device token format
  XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  
  # registration id format
  abCDEFghijk:AHJGJkhkhkbjkJYJgjkhkjhkjhkkhkhkhkhkjhkGSDH6gjhgHGugkjhgjgGjhgjhghJGjhhj-98jhgjhf-tIE_&amp;jhgfhfjhgjhggfgdhfjhkhlhljxvcxbbm-QjhghGuuhfdgfhjmgjjkg
  </code></pre>
  
  <p># In aws Examples: this is the format of device token they are getting </p>
  
  <p>59b70e15ca0f24835b49471e74a9a4095ed3d93bd4642c350c33b309d0b29f5b </p>
  
  <p>When I tried to create endpoint application using the above device token I'm getting following error:</p>
  
  <pre><code>Invalid parameter:
    Token Reason: iOS device tokens must be no more than 400 hexadecimal characters
    (Service: AmazonSNS;
     Status Code: 400;
     Error Code: InvalidParameter;
     Request ID: 14a9e207-9d0d-55b7-8394-b1ec0eabd59b)
  </code></pre>
  
  <p>I checked with <code>aws</code> documentation and they have different device token documentations: check this <a href="https://docs.aws.amazon.com/sns/latest/dg/mobile-push-apns.html#device-token-apns" rel="nofollow noreferrer">link</a>.</p>
  
  <p>What am i missing??</p>
  
  <p>Is there a way to convert the token in correct format in <code>c#</code>?</p>