1

I have develop android app with webview which convert my website into android app. After launch there are some improvements in app. so I have done those improvements and again release with new version. Now i want my customers to update app forcefully. But app is develop fully in webview. So how can i do that?

Do I need to do code level changes in my website?

Do I need to create API to check app version and then ask for force update?

Is there any native code for this? if any let me know.

Adarsh Bhatt
  • 548
  • 1
  • 9
  • 30
  • Sounds like: [How to force user to update the app?](https://stackoverflow.com/q/47386846/295004) – Morrison Chang Mar 12 '22 at 04:40
  • @MorrisonChang you have provide link which suggest solution is for app develop in native which uses apis but my app is fully based on webview. So my website is convert to android / ios app. – Adarsh Bhatt Mar 12 '22 at 04:43
  • Please provide more details on how website was converted to webview. If WebView via an app in the Play Store, then there is native code running the WebView, if progressive web app (PWA) then see: [When and how does a PWA update itself?](https://stackoverflow.com/q/49739438/295004). – Morrison Chang Mar 12 '22 at 04:49
  • It is not PWA it is an app develop for convert website as a mobile app in webview – Adarsh Bhatt Mar 12 '22 at 06:49

1 Answers1

-1

This is what you can do:

1. In you android code, add a HTML Element in the webview
programmatically and set the app version. 

2.When you load the webapp on the server side, check for this element

3. If the element is set, then the webrequest is coming from the app

4. Then Check the version and show them a message if the version is not upto date.
Zee
  • 622
  • 4
  • 13