We have been informed by the LG team that we have the following issue: the app remained logged in after reinstallation.
I would like to provide some context and technical insights into why this behavior may be occurring. Our application is designed as a hosted app, and it utilizes localStorage to retain the authentication status of users. This approach is commonly used to enhance user experience by enabling quick and seamless access to the app upon subsequent uses. It is important to mention that users have the option to log out manually.
However, as a web-based application hosted externally, there is currently no technical mechanism available within web technologies that allows us to detect when the webOS package has been uninstalled from a device. This inherent limitation prevents us from programmatically clearing the stored authentication status upon uninstallation of the app package.
We have observed, based on LG’s response in the LG Seller Lounge, that hosted apps have no way to be notified about package uninstall events: “Currently, no API is provided for app installation. If your app uses localStorage and your app is a hosted web app, stored data is not deleted when users update or remove your app. The data is deleted when the total usage of data reaches the limit.”
Given this response, we are reaching out to inquire if there are suggested alternative strategies commonly employed by similar hosted apps to effectively handle this limitation. Any guidance or insights that LG could provide would be invaluable in helping us enhance the user experience of our application.
We would prefer a viable and official alternative because implementing a “workaround” to achieve this goal on a Hosted Web App might introduce new risks to the login process, which we are keen to avoid.
We appreciate your understanding of the current limitations imposed by existing web technologies and are eager to implement a solution that addresses this challenge.
Thank you.