Capacitor provides a method for removing all registered listeners. Added this method to the plugin and updated the docs to reflect this change.
This method should be used if there is the possibility of calling the addListener method multiple times. Call it first to remove all listeners, before adding a new one to avoid side effects.
Capacitor provides a method for removing all registered listeners. Added this method to the plugin and updated the docs to reflect this change.
This method should be used if there is the possibility of calling the
addListener
method multiple times. Call it first to remove all listeners, before adding a new one to avoid side effects.