ionic-team / ionic-team/cordova-plugin-ionic-webview
When accessed link redirects to app's URL, it doesn't land to app.
- Dominant language
- Objective-C
- Stars
- 493
- Forks
- 410
- PR merge metrics
- No merged PRs in 30d
Description
### Configuration of Cordova App
- ``
- ``
- Android:
- ``
- ``
- iOS:
- ``
- ``
### Setup of server end point for `https://myawesomedomain.com/abc`
- For Android devices, it sends 302 redirect to `https://app.example.com`
- For iOS devices, it sends 302 redirect to `app://app.example.com`
## Versions
cordova: 10.0.0
cordova-android: 9.0.0
cordova-ios: 6.1.0
cordova-plugin-ionic-webview: 5.0.0
## Devices
Android 10
iOS 14.1
## Workaround
- Instead of sending 302 redirect from the above `https://myawesomedomain.com/abc` end point, if it sends HTML content with a javascript within it to navigate to app URLs, it would work properly.
e.g sample response:
```html
Title
if(window.navigator.userAgent.includes('iPhone')) {
location.href = 'app://app.example.com'
}else{
location.href = 'https://app.example.com'
}
```
Contributor guide
Assessment
This issue has not been assessed yet.