apache / apache/cordova-plugin-inappbrowser

Google Maps and PDF reader API throws UnSupported URL error when Migrating from UIWebView To WKWebView

Open
#758 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

Since Apple deprecated UIWebView and supports WKWebView, we updated the iOS version to 6.0.0 and removed **cordova-plugin-wkwebview-engine** plugin that was no longer supported.

After the iOS upgrade google map and pdf API calls stopped working and throws **unsupported URL error**.

We are using **cordova-plugin-inappbrowser 4.0.0** to call Google Map and PDF reader APIs. Below is the code snippet of InAppBrowser to call google Map URL.

```
$scope.openMap = function(url) {
options='location=no,toolbar=yes';
cordova.InAppBrowser.open(url, '_blank', options);
return false;
}
```
[Unsupported URL Error for Google Maps][1]
Below are the plugins installed and platform details:

Installed platforms:
```

ios 6.0.0
```
[Plugin details][2]

[1]: https://i.stack.imgur.com/hqdN4.png
[2]: https://i.stack.imgur.com/2i1en.png

stack overflow-link https://stackoverflow.com/questions/63308013/google-maps-and-pdf-reader-api-throws-unsupported-url-error-when-migrating-from

Contributor guide

Open the contributing guide

Research direction

Start with the cordova.InAppBrowser.open(url, '_blank', options) call and reproduce the Google Maps and PDF API failures on the listed ios 6.0.0 platform using the linked examples. Compare the behavior before and after removing cordova-plugin-wkwebview-engine; done means those URLs open without an unsupported URL error.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.