private void IOSPushTokenReceived(IOSNotificationDeviceToken res) { UM_PushRegistrationResult result = new UM_PushRegistrationResult(res.tokenString, true); OnPushIdLoaded(result); dispatch(PUSH_ID_LOADED, result); }
//-------------------------------------- // 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; }
//-------------------------------------- // 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); }
void FixedUpdate() { if (!tokenSent) { byte[] token = NotificationServices.deviceToken; if (token != null) { IOSNotificationDeviceToken t = new IOSNotificationDeviceToken(token); IOSNotificationController.instance.OnDeviceTockeReceivedAction(t); Destroy(gameObject); } } }
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); } } }
//-------------------------------------- // 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; }
//-------------------------------------- // 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); }
private void IOSPushTokenReceived(IOSNotificationDeviceToken res) { UM_PushRegistrationResult result = new UM_PushRegistrationResult(res.tokenString, true); OnPushIdLoadResult(result); }