Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix documentation on Expo URL schemes whitelist. #248

Merged
merged 1 commit into from
Apr 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 28 additions & 10 deletions docs/expo.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Usage in Expo apps

In theory, since this library does not contain any native iOS or Android code, it should work out of the box with Expo apps.

However, on iOS (since iOS 9), Apple won't allow apps to open other apps or check if they are installed without first specifying upfront which apps your app will interact with. You usually do this by adding a `LSApplicationQueriesSchemes` key to your Info.plist. In an Expo app you won't be able to directly edit Info.plist, but you can do so in a different way:
In theory, since this library does not contain any native iOS or Android code, it should work out of the box with Expo
apps.

However, on iOS, Apple won't allow apps to open other apps or check if they are installed without first specifying
upfront which apps your app will interact with. You usually do this by adding a `LSApplicationQueriesSchemes` key to
your Info.plist. In an Expo app you won't be able to directly edit Info.plist, but you can do so in a different way:

## Editing app.json

Expand All @@ -13,11 +15,25 @@ Simply add the following to your Expo app's `app.json` file:
"ios": {
"infoPlist": {
"LSApplicationQueriesSchemes": [
"comgooglemaps",
"citymapper",
"uber",
"lyft",
"waze"
"comgooglemaps",
"citymapper",
"uber",
"lyft",
"transit",
"truckmap",
"waze",
"yandexnavi",
"moovit",
"yandextaxi",
"yandexmaps",
"kakaomap",
"szn-mapy",
"mapsme",
"osmandmaps",
"gett",
"nmap",
"dgis",
"lftgpas"
]
}
}
Expand All @@ -26,8 +42,10 @@ Simply add the following to your Expo app's `app.json` file:

## Rebuild your app

**Don't forget to rebuild your app after making this change.**
**Don't forget to rebuild your app after making this change.**

You can usually do so by running `expo build:ios`.

Also note that this will only work when building your own [standalone app](https://docs.expo.io/versions/latest/distribution/building-standalone-apps), not when starting your app through the Expo app in the App Store.
Also note that this will only work when building your
own [standalone app](https://docs.expo.io/versions/latest/distribution/building-standalone-apps), not when starting your
app through the Expo app in the App Store.
Loading