public override void RegisteredForRemoteNotifications(UIApplication application, NSData token)
        {
            var deviceToken = token.Description.Replace("<", "").Replace(">", "").Replace(" ", "");

            if (!string.IsNullOrEmpty(deviceToken))
            {
                SNSUtils.RegisterDevice(SNSUtils.Platform.IOS, deviceToken);
            }
        }
示例#2
0
        private void HandleRegistration(Intent intent)
        {
            string registrationId = intent.GetStringExtra("registration_id");
            string error          = intent.GetStringExtra("error");
            string unregistration = intent.GetStringExtra("unregistered");

            if (string.IsNullOrEmpty(error))
            {
                SNSUtils.RegisterDevice(SNSUtils.Platform.Android, registrationId);
            }
        }