taivo / parse-push-plugin

Push notification plugin for Cordova/Phonegap/ionic on Parse platform
118 stars 102 forks source link

unsubscribe does not work (android only..) #109

Closed remcoNL closed 7 years ago

remcoNL commented 7 years ago

I don't know why, but in iOS this works perfectly, and in Android, the unsubscribe is ignored without error messages. Any ideas?

if (notify_me_NOTE==true){
try{
ParsePushPlugin.subscribe(GlobTable, function(msg) {
console.log("Subscription ParsePlugin OK")
      }, 
      function(e) {
      alert("Notification setting failed: "+e);
      });

}
catch(e) {console.log ("do not know Parse Push Plugin: "+e);}

}

if (notify_me_NOTE==false){

try{
ParsePushPlugin.unsubscribe(GlobTable, function(msg) {

   console.log("Unsubscribe ParsePlugin OK")
      }, function(e) {
          alert("Unsubscribe failed: "+e);
      });

}
catch(e) {console.log ("do not know Parse Push Plugin: "+e);}

}