Unfortunately, the WebView rendering engine of Android does not send a referer. There are a few hacks (like https://stackoverflow.com/questions/5342399/how-to-send-a-referer-request-in-a-url-for-a-webview), but unfortunately, they only work on specific Android versions and only for the first URL called. As a better way we suggest that you save the current URL in a cookie “last_visited”, which is overwritten or updated by every page (e.g., by PHP or JavaScript: https://stackoverflow.com/questions/17254189/how-to-save-current-url-to-a-cookie-and-restore-with-javascript-onclick). 🙂
- Knowledge Base
- WebViewGold for Android
- I noticed today that hyperlinks in my web app that call up other pages aren’t showing a HTTP Referrer in the HTTP header while using the generated Android app.
Article sections
Related Articles
- How to Get 12 or 20 Google Play Store Testers easily
- Is Your WebViewGold App Ready for Google Play’s 16 KB Requirement?
- How to integrate Pushwoosh in WebView-based iOS and Android apps?
- Fixing “white page” CDN issues in iOS & Android WebViews with a workaround
- How do I set up RevenueCat for In-App Purchases / In-App Subscriptions in WKWebView (iOS) or WebView (Android)?
- How to use GitHub for smart upgrading of WebViewGold app template?