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

        OnPushIdLoaded(result);
        dispatch(PUSH_ID_LOADED, result);
    }
Esempio n. 2
0
    //--------------------------------------
    //  GET/SET
    //--------------------------------------

    //--------------------------------------
    //  EVENTS
    //--------------------------------------

    private void OnDeviceTokenReceived(IOSNotificationDeviceToken token)
    {
        UnityEngine.Debug.Log("OnTokenReceived");
        UnityEngine.Debug.Log(token.tokenString);

        IOSDialog.Create("OnTokenReceived", token.tokenString);

        IOSNotificationController.OnDeviceTokenReceived -= OnDeviceTokenReceived;
    }
Esempio n. 3
0
    //--------------------------------------
    //  GET/SET
    //--------------------------------------

    //--------------------------------------
    //  EVENTS
    //--------------------------------------

    private void OnTokenReceived(CEvent e)
    {
        IOSNotificationDeviceToken token = e.data as IOSNotificationDeviceToken;

        UnityEngine.Debug.Log("OnTokenReceived");
        UnityEngine.Debug.Log(token.tokenString);

        IOSDialog.Create("OnTokenReceived", token.tokenString);

        IOSNotificationController.instance.removeEventListener(IOSNotificationController.DEVICE_TOKEN_RECEIVED, OnTokenReceived);
    }
Esempio n. 4
0
 void  FixedUpdate()
 {
     if (!tokenSent)
     {
         byte[] token = NotificationServices.deviceToken;
         if (token != null)
         {
             IOSNotificationDeviceToken t = new IOSNotificationDeviceToken(token);
             IOSNotificationController.instance.OnDeviceTockeReceivedAction(t);
             Destroy(gameObject);
         }
     }
 }
Esempio n. 5
0
	void  FixedUpdate () {


		
		if (!tokenSent) {

			byte[] token   = NotificationServices.deviceToken;
			//Debug.Log(NotificationServices.deviceToken);
			if(token != null) {

				IOSNotificationDeviceToken t = new IOSNotificationDeviceToken(token);
				IOSNotificationController.instance.OnDeviceTockeReceivedAction (t);
				Destroy (gameObject);
			}
		}

	}
Esempio n. 6
0
    //--------------------------------------
    //  GET/SET
    //--------------------------------------

    //--------------------------------------
    //  EVENTS
    //--------------------------------------

    public void OnDeviceTockeReceived(IOSNotificationDeviceToken token)
    {
        dispatch(DEVICE_TOKEN_RECEIVED, token);
    }
	//--------------------------------------
	//  GET/SET
	//--------------------------------------
	
	//--------------------------------------
	//  EVENTS
	//--------------------------------------
	
	private void OnDeviceTokenReceived(IOSNotificationDeviceToken token) {
		UnityEngine.Debug.Log ("OnTokenReceived");
		UnityEngine.Debug.Log (token.tokenString);
		
		IOSDialog.Create("OnTokenReceived", token.tokenString);
		
		IOSNotificationController.OnDeviceTokenReceived -= OnDeviceTokenReceived;
	}
Esempio n. 8
0
    //--------------------------------------
    //  EVENTS
    //--------------------------------------

    public void OnDeviceTockeReceivedAction(IOSNotificationDeviceToken token)
    {
        OnDeviceTokenReceived(token);
    }
	//--------------------------------------
	//  GET/SET
	//--------------------------------------
	
	//--------------------------------------
	//  EVENTS
	//--------------------------------------
	
	private void OnDeviceTokenReceived(IOSNotificationDeviceToken token) {
		ISN_Logger.Log ("OnTokenReceived");
		ISN_Logger.Log (token.tokenString);
		
		IOSDialog.Create("OnTokenReceived", token.tokenString);
		
		IOSNotificationController.OnDeviceTokenReceived -= OnDeviceTokenReceived;
	}
 //--------------------------------------
 //  GET/SET
 //--------------------------------------
 //--------------------------------------
 //  EVENTS
 //--------------------------------------
 public void OnDeviceTockeRecived(IOSNotificationDeviceToken token)
 {
     dispatch (DEVICE_TOKEN_RECIVED, token);
 }
Esempio n. 11
0
    private void IOSPushTokenReceived(IOSNotificationDeviceToken res)
    {
        UM_PushRegistrationResult result = new UM_PushRegistrationResult(res.tokenString, true);

        OnPushIdLoadResult(result);
    }