I have the below method which I call to unsubscribe the device.but it does unsubscribe in a elegant way.When I try to
push a message it says something went wrong.There are no messages in the log.How do I trace this?
public static void unsubsribeDevice(){
PushNotificationService pushNotificationService = App42API.buildPushNotificationService();
final String deviceRegId = GCMRegistrar.getRegistrationId(App42API.appContext);
pushNotificationService.unsubscribeDevice(App42API.getLoggedInUser(), deviceRegId, new App42CallBack() {
public void onSuccess(Object response)
{
PushNotification pushNotification = (PushNotification)response;
System.out.println("userName is " + pushNotification.getUserName());
}
public void onException(Exception ex)
{
System.out.println("Exception Message"+ex.getMessage());
}
});
}