Coder Social home page Coder Social logo

Comments (6)

vmurin avatar vmurin commented on July 24, 2024 1

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.

vmurin avatar vmurin commented on July 24, 2024

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 for CFBundleURLSchemes 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.

AlexeyPronin avatar AlexeyPronin commented on July 24, 2024

Thank you, close

from react-native-azure-auth.

dfernandes83 avatar dfernandes83 commented on July 24, 2024

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.

AntonBorovoi avatar AntonBorovoi commented on July 24, 2024

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.

vmurin avatar vmurin commented on July 24, 2024

Hi @AntonBorovoi

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.