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