Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

Deleting a Device Registration

Deleting a Device Registration

You may want to stop sending notifications to a certain device. To do that, delete its registration from Telerik Platform.

When you delete a registration, the device stops receiving push notifications sent through Telerik Platform, but the device's push token is not invalidated on the provider's push notification service. Later, if you want to resume sending push notifications to the device, all you need to do is re-register it with Telerik Platform using the previously issued push token (or a new one if the current has expired in the meantime).

To delete a device registration, use code like this in your application. Note that you must URL-encode the hardware ID (encodedDeviceId) before sending it.

Request:
    DELETE https://api.everlive.com/v1/your-app-id/Push/Devices/HardwareId/<encodedDeviceId>
Response:
    Status: 200 OK
    Content-Type: application/json
var encodedDeviceId = encodeURIComponent(device_id);
$.ajax({
    type: "DELETE",
    url: 'https://api.everlive.com/v1/your-app-id/Push/Devices/HardwareId/' + <encodedDeviceId>,
    success: function(data){
        alert(JSON.stringify(data));
    },
    error: function(error){
        alert(JSON.stringify(error));
    }
});

See Also


Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.