Replies: 1 comment 4 replies
-
This is not something you can or should do for an app, Capacitor or otherwise. One thing you could do if you need to restart something is bind native listeners on a lifecycle enter (or useEffect in React for example), and unbind on lifecycle exit (or the return function in useEffect in React, for example). Then you won't have the issue of duplicated listeners. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking for ways to trigger a restart of my app programmatically. That is start everything again from the splash screen and load all plugins again.
Please notice, I am not talking about refreshing the WebView but a full app restart. Doing a WebView refresh will duplicate event listeners registered on Native plugins and I want to avoid this.
Beta Was this translation helpful? Give feedback.
All reactions