title: How to obtain GCM registration id using only C# code?
body: <p>I want to send push notification to Android device using Amazon SNS service.</p>
  <p>But as listed on <a href="http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html#SNSMobilePushPrereq" rel="nofollow noreferrer">Amazon's official site</a>:</p>
  <blockquote>
  <p>You send push notification messages to both mobile devices and desktops using one of the following supported push notification services:</p>
  <p>Amazon Device Messaging (ADM)</p>
  <p>Apple Push Notification Service (APNS) for both iOS and Mac OS X</p>
  <p>Baidu Cloud Push (Baidu)</p>
  <p>Google Cloud Messaging for Android (GCM)</p>
  <p>Microsoft Push Notification Service for Windows Phone (MPNS)</p>
  <p>Windows Push Notification Services (WNS).</p>
  </blockquote>
  <p>So I am using GCM as an intermediary to send push notification to my Android device.</p>
  <p>Here is an another link that states how to create project with GCM: <a href="http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html" rel="nofollow noreferrer">http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html</a>.</p>
  <p>So far I have able to successfully create project in Google with my Server key and project number but only thing I am not getting is how to generate Registration Id and from where.</p>
  <p>Do I need to programmatically generate registration id from my C# code?</p>
  <p>But I couldn't find any code in C# to generate registration id. I have just find code in Android to generate Registration Id.</p>