void ButtonAddPushNotificationsOnChannelsHandler() { pubnub.AddPushNotificationsOnChannels().Channels(listChannels).DeviceID(deviceId).PushType(pnPushType).Async((result, status) => { Debug.Log("in AddPushNotificationsOnChannels"); if (status.Error) { Debug.Log(string.Format("In Example, AddPushNotificationsOnChannels Error: {0} {1} {2}", status.StatusCode, status.ErrorData, status.Category)); } else { Debug.Log(string.Format("DateTime {0}, In AddPushNotificationsOnChannels, result: {1}", DateTime.UtcNow, result.Message)); Display(string.Format("AddPushNotificationsOnChannels: {0}", result.Message)); } }); pubnub.AddPushNotificationsOnChannels().Channels(listChannels).DeviceID(deviceId).PushType(PNPushType.APNS2).Topic("a").Async((result, status) => { Debug.Log("in AddPushNotificationsOnChannels"); if (status.Error) { Debug.Log(string.Format("In Example, AddPushNotificationsOnChannels Error: {0} {1} {2}", status.StatusCode, status.ErrorData, status.Category)); } else { Debug.Log(string.Format("DateTime {0}, In AddPushNotificationsOnChannels, result: {1}", DateTime.UtcNow, result.Message)); Display(string.Format("AddPushNotificationsOnChannels: {0}", result.Message)); } }); }