I am trying to open google-forms link using InAppBrowser webview. My code is:
private _launchInAppBrowser(link : string) : void {
let opts : string = "location=yes,clearcache=yes,hidespinner=no,usewkwebview=true"
let iab = this._browser.create(link, '_blank', opts);
iab.show();
}
Above works fine in ios device, but for android device it gives UNKNOWN URL issue
Note: When i provide the complete url, it works fine in Android also.
Guess you might have a missing access origin setting in your config.xml file.
Add this property in ur config.xml. After adding you will have to remove platform android and add it back again.
<access origin="*" />
Adding this allows every origin- then later you can restrict after that if required.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.