deleteAllDevices Documentation

0 votes

Hello in the documentation for javascript of function deleteAllDevices

I cannot understand the second parameter "message" : what it mean ?

I report the documentation found :

 

  1. App42.initialize("API_KEY","SECRET_KEY");  
  2. var pushNotificationService  = new App42Push();  
  3. pushNotificationService.deleteAllDevices( userName,message, {    
  4.     success: function(object)   
  5.     {    
  6.         var pushNotification = JSON.parse(object);    
  7.         console.log("Response is "+pushNotification)  
  8.     },    
  9.     error: function(error) {    
  10.     }    
  11. });   

 

asked Apr 14, 2015 in App42 Cloud API-BaaS by odf (37 points)

1 Answer

0 votes

Hello Odf,

 
Thanks for pointing out on this. It is an issue from our side. We will update our documentation  ASAP. Kindly find the below code snippet for delete devices and let me know if it helps:
 

var userName = "Nick",
result;
App42.initialize("API_KEY","SECRET_KEY");
var pushNotificationService  = new App42Push();
pushNotificationService.deleteAllDevices( userName, {  
success: function(object) 
{  
var pushNotification = JSON.parse(object);  
console.log("Response is "+pushNotification)
},  
error: function(error) {  
}  
}); 

Thanks,

Himanshu Sharma

answered Apr 15, 2015 by hs00105 (2,005 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...