Comments (6)
No, it's not possible. You cannot claim support for some well-known URL schemes, including http, https, mailto, tel, sms, facetime, and facetime-audio. The system directs well-known types of URLs to the corresponding system apps and well-known http–based URLs to specific apps, such as Maps, YouTube, and Music. So the goal of the custom URL scheme is to bind it unambiguously with you app. Therefor the URL scheme must be unique. As an unique ID your bundle identifier works very well. But it could be also something short like "foo" ;)
There are two solutions for this error from MS on the page you posted. But I suppose the described use case is not exactly yours. The error message could be shown probably in other cases too.
Also double check the format of call back URI in the app registration portal.
from react-native-azure-auth.
Hi Alex,
Thanks for your question.
I have just updated the readme section ' iOS config' - take a look on it. I think the relevant part for your issue is:
Attention: The
<string>
value forCFBundleURLSchemes
key should be the literal value of the Bundle Identifier with no $ variables, for example: com.my-domain.native-app
Try to change the CFBundleURLSchemes
and probably CFBundleIdentifier
too accordingly and let me know if it works now.
from react-native-azure-auth.
Thank you, close
from react-native-azure-auth.
Hi @vmurin !!
Even following all steps from the documentation, I'm getting an error (iOS app). Some researches makes me believe that will not be possible to perform this URL access using the bundleidentifier, once the mobile is managed by the company and block this kind of address. Is there any way to change it to use https://com.my-domain.native-app/ios/callback instead of com.my-domain.native-app://com.my-domain.native-app/ios/callback?
Here is the reference page about that error: [https://support.microsoft.com/en-us/help/4487249/safari-cannot-open-the-page-because-address-is-invalid-error-when-open]
from react-native-azure-auth.
Hi @vmurin
I am getting the same error Safari cannot open the page because the address is invalid
on iOS versions less then 14.5
I applied #118 for all iOS versions and it seems to work fine
Do you have any idea why it happens?
from react-native-azure-auth.
Sorry, I did not get deep in details what was changed in the versions after 14.5 but in any case the PR #118 was merged couple months ago so you actually did need to apply it directly - just update the version of the library :)
from react-native-azure-auth.
Related Issues (20)
- Is there any way to clearSession without opening the dialog modal ? HOT 1
- Crash: No Activity found to handle Intent { act=android.intent.action. VIEW dat=https://login HOT 1
- yarn install fails when node_modules and lock files are deleted HOT 1
- Glitch - loop to redirect to login popup, not redirect to app HOT 14
- msGraphRequest for other endpoints that use POST
- Infinite Loading on microsoft login HOT 6
- Does the framework work on React-Native-Macos and React-Native-Windows? HOT 1
- Android build error with latest RN version 0.72.1 HOT 3
- Not able to set in.veris.userandroid://in.veris.userandroid/android/callback. as redirect uri in azure AD HOT 3
- Logout does not work at iOS and Android HOT 2
- Compile Android problem
- Authentication IOS: Network request failed with face ID (IOS)
- ClearSession WebView iOS error when closing HOT 2
- Azure MFA Network Failure on iOS HOT 3
- Logout Redirect issue HOT 5
- First login attempt always fails HOT 3
- Expo Support HOT 1
- Logout WebView Not Closing HOT 3
- AcquireTokenSilent not working HOT 1
- [iOS] - Popup name edit HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-azure-auth.