How to clear localstorage while the app is being uninstalled

Hi,

Is there any way to clear localstorage when the app is being uninstalled ?

Check the links below and guess you are working on android platform cause I doubt if it happens on ios.

  1. An Android app remembers its data after uninstall and reinstall - Stack Overflow
  2. How to remove local storage as app get uninstall - #23 by sahildaga95

thanks, will try this

Great and hope it helps.