I see that if I subscribe a device to a topic, when I change the account, I continue to receive the notifications for the old account, I think it mean that the notification depend by the device and not by the account. this is a problem if I decide to change account in my device. I use the Cordova FCM plugin
FCMPlugin.getToken(
function(token){
alert(token);
},
function(err){
console.log('error retrieving token: ' + err);
}
)
FCMPlugin.subscribeToTopic('topicExample');
FCMPlugin.unsubscribeFromTopic('topicExample');
exist a method to change an account and also the corresponding notification subscription? thanks in advance