Skip to content

Commit 7530ca4

Browse files
committed
Fix bug that could not open Chrome on iOS
1 parent 648001c commit 7530ca4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ ext {
5959

6060
ref. [example](https://github.com/droibit/react-native-custom-tabs/blob/develop/example/android/build.gradle#L29-L34)
6161

62+
#### iOS
63+
64+
If you support iOS 9 or higher, you need to add the `LSApplicationQueriesSchemes` key and the following scheme to info.plist of your app.
65+
66+
* `googlechrome`
67+
* `googlechromes`
68+
69+
ref. https://developer.apple.com/documentation/uikit/uiapplication/1622952-canopenurl
70+
6271
## Usage
6372

6473
Open the URL as `Linking` of React Native.

example/ios/example/Info.plist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>LSApplicationQueriesSchemes</key>
6+
<array>
7+
<string>googlechrome</string>
8+
<string>googlechromes</string>
9+
</array>
510
<key>CFBundleDevelopmentRegion</key>
611
<string>en</string>
712
<key>CFBundleDisplayName</key>

0 commit comments

Comments
 (0)