App Version Check API
Detect the installed app version from your web app and prompt users to update when needed.
Using this WebViewGold JavaScript API approach, your website/web app can retrieve the version of the iOS app being used by your app user. This is especially helpful if you want to notify users of an older version to update their app. Moreover, you can hide web app sections that require app features supported by a specific app version.
Use JavaScript to this kind of URL to read and alert the app version and app bundle number:
<script> window.location.href = "getappversion://"; alert(versionNumber); alert(bundleNumber); </script>
Alternatively, consider turning
autoInjectVariable to true in Config.swift to automatically inject this (and other) values into JavaScript without needing to call a URL upfront.