Resolution: Cannot Reproduce
Affects Version/s: cordova-android-7.0.0
Fix Version/s: None
WebView: This only happens on the AndroidSystemWebView implementation (not Chrome) versions 67.0.3396.*
Android OS: All versions on which the above WebView is compatible so I think [5, 6.0.1]
Device: Nexus 5, Nexus 5x, HTC One M9
Cordova not initialized properly:
I have looked into this issue and it seems that sometimes the origin URL is empty and that is the reason why the message above is shown.
The strange think is that if you call view.getUrl() the url is return correctly. I was wondering, can be that used instead of the origin url ?
This is an issue not that easy to reproduce, I managed to reproduce with a simple hello world cordova app.
I did some tweaks to increase the occurrence of the issue:
1. Enable "Don't keep activities" from the developer options
2. Using "Recents" button open and close the app very fast
3. I have attached the MainActvity.java that I used. There is some commented code that can be uncommented to increase the occurrence rate of the issue.