//------------------------------------------------------------------ /// Callback for succeeding to request a Push Notification Device ID. /// Attempts to register Push Notifications with ChilliConnect. /// /// @param in_deviceID - Device Identifier. //------------------------------------------------------------------ private void OnPluginRegistered(string in_deviceID) { m_deviceIdentifier = in_deviceID; Action <RegisterTokenRequest> successCallback = (RegisterTokenRequest request) => { UnityEngine.Debug.Log("PushNotificationDemoSceneController : OnPluginRegistered - Success!"); }; Action <RegisterTokenRequest, RegisterTokenError> errorCallback = (RegisterTokenRequest request, RegisterTokenError error) => { UnityEngine.Debug.Log(string.Format("An error occurred while Registering Push Notifications: {0} - Device Token -", error.ErrorDescription)); }; RegisterTokenRequestDesc desc = new RegisterTokenRequestDesc(k_pushService, m_deviceIdentifier); ChilliConnect.PushNotifications pushNotificationModule = m_chilliConnect.PushNotifications; pushNotificationModule.RegisterToken(desc, successCallback, errorCallback); }