private void OnRegFailed()
    {
        UM_PushRegistrationResult result = new UM_PushRegistrationResult(string.Empty, false);

        OnPushIdLoaded(result);
        dispatch(PUSH_ID_LOADED, result);
    }
    private void OnRegstred()
    {
        UM_PushRegistrationResult result = new UM_PushRegistrationResult(GoogleCloudMessageService.instance.registrationId, true);

        OnPushIdLoaded(result);
        dispatch(PUSH_ID_LOADED, result);
    }
    private void IOSPushTokenReceived(IOSNotificationDeviceToken res)
    {
        UM_PushRegistrationResult result = new UM_PushRegistrationResult(res.tokenString, true);

        OnPushIdLoaded(result);
        dispatch(PUSH_ID_LOADED, result);
    }
Пример #4
0
	private void OnPushIdLoaded (UM_PushRegistrationResult res) {
		if(res.IsSucceeded) {
			new MobileNativeMessage("Succeeded", "Device Id: " + res.deviceId);
		} else {
			new MobileNativeMessage("Failed", "No device id");
		}
	}
 private void OnPushIdLoaded(UM_PushRegistrationResult res)
 {
     if (res.IsSucceeded)
     {
         new MobileNativeMessage("Succeeded", "Device Id: " + res.deviceId);
     }
     else
     {
         new MobileNativeMessage("Failed", "No device id");
     }
 }
 private void OnPushIdLoaded(UM_PushRegistrationResult res)
 {
     if (res.IsSucceeded)
     {
         MNPopup popup = new MNPopup("Succeeded", "Device Id: " + res.deviceId);
         popup.AddAction("Ok", () => {});
         popup.Show();
     }
     else
     {
         MNPopup popup = new MNPopup("Failed", "No device id");
         popup.AddAction("Ok", () => {});
         popup.Show();
     }
 }
Пример #7
0
        private void OnPushIdLoaded(UM_PushRegistrationResult res)
        {
            UM_NotificationController.instance.OnPushIdLoaded -= OnPushIdLoaded;

            if (res.IsSucceeded)
            {
                devicePushId.Value = res.deviceId;

                Fsm.Event(successEvent);
                Finish();
            }
            else
            {
                devicePushId.Value = string.Empty;

                Fsm.Event(failEvent);
                Finish();
            }
        }
Пример #8
0
    private void IOSPushTokenReceived(IOSNotificationDeviceToken res)
    {
        UM_PushRegistrationResult result = new UM_PushRegistrationResult(res.tokenString, true);

        OnPushIdLoadResult(result);
    }
Пример #9
0
    private void OnRegstred()
    {
        UM_PushRegistrationResult result = new UM_PushRegistrationResult(GoogleCloudMessageService.instance.registrationId, true);

        OnPushIdLoadResult(result);
    }
Пример #10
0
    private void OnRegFailed()
    {
        UM_PushRegistrationResult result = new UM_PushRegistrationResult(string.Empty, false);

        OnPushIdLoadResult(result);
    }
    private void IOSPushTokenReceived(ISN_RemoteNotificationsRegistrationResult res)
    {
        UM_PushRegistrationResult result = new UM_PushRegistrationResult(res.Token.DeviceId, true);

        OnPushIdLoadResult(result);
    }