'Webos clear localStorage when uninstall

I'm developing a webOs app with vanilla JavaScript. The app don't pass the LG QA processing because when uninstall the app and install again the keep users token on localStorage, there's a way to delete localStorage onUninstall? They send this text in the answer of the QA process.

Condition : Start App > Login > Main page > Delete App > Reinstall App > Restart App > Check page.

Error Type : Login (or Logout) error/ Payment error

Problem : When restart the App after deleting, it login automatically.

Expected : When restart the App after deleting, it should not login automatically and login page should appear.

Frequency: Always

Issue Device: webOS5.0( K6Lp, K6Hp, O20, E60 ), webOS6.0( LM21U, O20N, K7Lp, E60+F20, LM21A, LM21U FHD )



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source