react-navigation / react-navigation/react-navigation.github.io
Is deep linking documentation for ios wrong with regards to the scheme and identifier?
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 324
- Forks
- 2k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
initially posted here: https://github.com/react-navigation/react-navigation/discussions/10462
but got no response, and i feel like this is important.
under the docs for deep linking on ios: https://reactnavigation.org/docs/deep-linking/#setup-on-ios
there is a section for setting the scheme in the project.
here it says you can run a command to do it automatically:
npx uri-scheme add mychat --ios
this does indeed add mychat as a "URL Scheme" in Xcode. however, it does not add an "Identifier". that is left blank.
then underneath, there are instructions on how to do it manually instead of automatically.
here it shows that we need to add mychat for both "Identifier" and "URL Scheme". this is different than the previous method, now "Identifier" is no longer left blank.
i found the apple docs for deep linking: https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app
and here it says:
The identifier you supply with your scheme distinguishes your app from others that declare support for the same scheme. To ensure uniqueness, specify a reverse DNS string that incorporates your company’s domain and app name.
their example also shows that the "Identifier" is com.example.myphotoapp while the "URL Scheme" is myphotoapp.
so this makes me believe that the react-navigation documentation shouldt say we should set same string for both. it should show an example similar to the example from Apple.
now since every app already has a bundleId which is a reverse DNS string, that one should be used.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par la section « Setup on iOS » de la documentation sur le deep linking et comparez la commande npx uri-scheme avec les instructions manuelles de Xcode. Vérifiez les indications d’Apple sur les schémas d’URL personnalisés liées dans l’issue, notamment la distinction entre Identifier et URL Scheme. Le travail est considéré comme terminé lorsque la documentation explique de manière cohérente les valeurs correctes et reflète la configuration vérifiée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- ios, react-native
- Domaine
- documentation, mobile
- Type d'issue
- Documentation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 52/100