BuildIt.Bot.Client.Impl.Droid.Utilities.GcmService.OnRegistered C# (CSharp) Method

OnRegistered() protected method

protected OnRegistered ( Android.Content.Context context, string deviceToken ) : void
context Android.Content.Context
deviceToken string
return void
        protected override async void OnRegistered(Context context, string deviceToken)
        {
            //Receive registration Id for sending GCM Push Notifications to
            try
            {
                await RegisterPushNotifications(deviceToken);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
                MessagingCenter.Send(this, Constants.FailureSubscriptionMsg, ex);
            }
        }