This would be very convenient to execute custom code when users subscribe or unsubscribe to notifications.
I suggest implementing a callback mechanism, for instance by adding a callback parameter in to the subscribe and unsubscribe functions, and execute the callbacks in or instead of reg.pushManager.subscribe(options).then and subscription.unsubscribe().then for instance.
What do you think?
This would be very convenient to execute custom code when users subscribe or unsubscribe to notifications. I suggest implementing a callback mechanism, for instance by adding a
callback
parameter in to thesubscribe
andunsubscribe
functions, and execute the callbacks in or instead ofreg.pushManager.subscribe(options).then
andsubscription.unsubscribe().then
for instance. What do you think?