You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/10/06 13:04:58 UTC
[GitHub] [cordova-android] benmesza opened a new issue #1366: net: ERR_UNKNOWN_URL_SCHEME with targetSdkVersion 30
benmesza opened a new issue #1366:
URL: https://github.com/apache/cordova-android/issues/1366
# Bug Report
## Problem
Use auth0 in Ionic cordova app, and when user sign in to app successfully cannot redirect to app because net: ERR_UNKNOWN_URL_SCHEME error. targetSdkVersion 29 was worked, but when upgrade to 30 get this error on Android 11 platform, but works on Android 10.
### What is expected to happen?
Successfully redirect to app on Android 11
### What does actually happen?
Get net: ERR_UNKNOWN_URL_SCHEME error.
## Information
<!-- Include all relevant information that might help understand and reproduce the problem -->
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
Auth0 integration
### Environment, Platform, Device
Android 11
### Version information
Cordova CLI: 10.0.0
Cordova platform: Cordova-Android 10.1.1
Frameworks: Ionic 5 with Angular 12.1.0
## Checklist
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] benmesza commented on issue #1366: net: ERR_UNKNOWN_URL_SCHEME with targetSdkVersion 30
Posted by GitBox <gi...@apache.org>.
benmesza commented on issue #1366:
URL: https://github.com/apache/cordova-android/issues/1366#issuecomment-938462095
> Have you tried on an actual android 11 device? I am having the same issue in android studio when emulating on a device with API level 30 but on a phone that has android 11 works just fine.
I tried on real android 11 device.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] jpduckwo removed a comment on issue #1366: net: ERR_UNKNOWN_URL_SCHEME with targetSdkVersion 30
Posted by GitBox <gi...@apache.org>.
jpduckwo removed a comment on issue #1366:
URL: https://github.com/apache/cordova-android/issues/1366#issuecomment-950719796
Check if the cordova-plugin-whitelist was not installed properly due to this bug (it happens when you remove and add the android platform)
Fix with `cordova plugin add cordova-plugin-whitelist`
#1371
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] benmesza commented on issue #1366: net: ERR_UNKNOWN_URL_SCHEME with targetSdkVersion 30
Posted by GitBox <gi...@apache.org>.
benmesza commented on issue #1366:
URL: https://github.com/apache/cordova-android/issues/1366#issuecomment-948402632
> > scheme format: io.ionic.starter://subdomain.domain.hu/cordova/io.ionic.starter
>
> `io.ionic.starter` isn't a valid scheme for android. Android's [WebAssetLoader](https://developer.android.com/reference/androidx/webkit/WebViewAssetLoader) requires an `http` or `https` scheme.
>
> > targetSdkVersion 29 was worked, but when upgrade to 30 get this error on Android 11 platform, but works on Android 10.
>
> With the information provided, this doesn't make much sense to me. Can a [minimal reproduction app](https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md) be provided?
I create a reproduction app: https://github.com/benmesza/Reproduction . The folder include title.txt file where you can find the e-mail and password to the login. In the project assets folder include an image from the error what i experienced on android 11 device.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] jpduckwo commented on issue #1366: net: ERR_UNKNOWN_URL_SCHEME with targetSdkVersion 30
Posted by GitBox <gi...@apache.org>.
jpduckwo commented on issue #1366:
URL: https://github.com/apache/cordova-android/issues/1366#issuecomment-950719796
Check if the cordova-plugin-whitelist was not installed properly due to this bug (it happens when you remove and add the android platform)
Fix with `cordova plugin add cordova-plugin-whitelist`
#1371
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] jpduckwo edited a comment on issue #1366: net: ERR_UNKNOWN_URL_SCHEME with targetSdkVersion 30
Posted by GitBox <gi...@apache.org>.
jpduckwo edited a comment on issue #1366:
URL: https://github.com/apache/cordova-android/issues/1366#issuecomment-962193070
Have you tried moving
```
<preference name="Hostname" value="example.example.com" />
<preference name="Scheme" value="https" />
```
To the iOS section in config.xml. Ie
```
<platform name="ios">
<preference name="Hostname" value="example.example.com" />
<preference name="Scheme" value="https" />
```
I think those settings break stuff in cordova-android with version 10
EDIT: Or just remove them entirely if you don't need them in iOS
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] jpduckwo commented on issue #1366: net: ERR_UNKNOWN_URL_SCHEME with targetSdkVersion 30
Posted by GitBox <gi...@apache.org>.
jpduckwo commented on issue #1366:
URL: https://github.com/apache/cordova-android/issues/1366#issuecomment-962193070
Have you tried moving
```
<preference name="Hostname" value="example.example.com" />
<preference name="Scheme" value="https" />
```
To the iOS section in config.xml. Ie
```
<platform name="ios">
<preference name="Hostname" value="example.example.com" />
<preference name="Scheme" value="https" />
```
I think those settings break stuff in cordova-android with version 10
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] canilacatalin commented on issue #1366: net: ERR_UNKNOWN_URL_SCHEME with targetSdkVersion 30
Posted by GitBox <gi...@apache.org>.
canilacatalin commented on issue #1366:
URL: https://github.com/apache/cordova-android/issues/1366#issuecomment-938434052
Have you tried on an actual android 11 device? I am having the same issue in android studio when emulating on a device with API level 30 but on a phone that has android 11 works just fine.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] brassier commented on issue #1366: net: ERR_UNKNOWN_URL_SCHEME with targetSdkVersion 30
Posted by GitBox <gi...@apache.org>.
brassier commented on issue #1366:
URL: https://github.com/apache/cordova-android/issues/1366#issuecomment-962164261
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] breautek commented on issue #1366: net: ERR_UNKNOWN_URL_SCHEME with targetSdkVersion 30
Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1366:
URL: https://github.com/apache/cordova-android/issues/1366#issuecomment-947034116
> scheme format: io.ionic.starter://subdomain.domain.hu/cordova/io.ionic.starter
`io.ionic.starter` isn't a valid scheme for android. Android's [WebAssetLoader](https://developer.android.com/reference/androidx/webkit/WebViewAssetLoader) requires an `http` or `https` scheme.
> targetSdkVersion 29 was worked, but when upgrade to 30 get this error on Android 11 platform, but works on Android 10.
With the information provided, this doesn't make much sense to me. Can a [minimal reproduction app](https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md) be provided?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] benmesza commented on issue #1366: net: ERR_UNKNOWN_URL_SCHEME with targetSdkVersion 30
Posted by GitBox <gi...@apache.org>.
benmesza commented on issue #1366:
URL: https://github.com/apache/cordova-android/issues/1366#issuecomment-938613858
> Can you provide an example of the url you're redirecting to. Do include the actual scheme, **https://** example.com/...
scheme format: io.ionic.starter://subdomain.domain.hu/cordova/io.ionic.starter
io.ionic.starter is the config.xml file widget id
My config.xml file include <allow-navigation href="*" />, <allow-intent href="*" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] breautek commented on issue #1366: net: ERR_UNKNOWN_URL_SCHEME with targetSdkVersion 30
Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1366:
URL: https://github.com/apache/cordova-android/issues/1366#issuecomment-938604411
Can you provide an example of the url you're redirecting to. Do include the actual scheme, **https://** example.com/...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org