Skip to content

Commit c41d181

Browse files
committed
Add Android package queries for Custom Tabs and supported browsers
- Add <queries> to android/src/main/AndroidManifest.xml to declare VIEW intents (http/https), the CustomTabs service action and common browser packages - Add demo app.gif to the repo - Reformat example AndroidManifest and example iOS Info.plist (whitespace/ordering only)
1 parent 9266ecc commit c41d181

4 files changed

Lines changed: 95 additions & 75 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<queries>
3+
<intent>
4+
<action android:name="android.intent.action.VIEW" />
5+
<data android:scheme="http" />
6+
</intent>
7+
<intent>
8+
<action android:name="android.intent.action.VIEW" />
9+
<data android:scheme="https" />
10+
</intent>
11+
12+
<intent>
13+
<action android:name="android.support.customtabs.action.CustomTabsService" />
14+
</intent>
15+
16+
<package android:name="com.android.chrome" />
17+
<package android:name="com.chrome.beta" />
18+
<package android:name="com.chrome.dev" />
19+
<package android:name="com.chrome.canary" />
20+
<package android:name="com.brave.browser" />
21+
<package android:name="com.microsoft.emmx" />
22+
</queries>
223
</manifest>

app.gif

2.16 MB
Loading
Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,17 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2-
3-
<uses-permission android:name="android.permission.INTERNET" />
4-
5-
<application
6-
android:name=".MainApplication"
7-
android:label="@string/app_name"
8-
android:icon="@mipmap/ic_launcher"
9-
android:roundIcon="@mipmap/ic_launcher_round"
10-
android:allowBackup="false"
11-
android:theme="@style/AppTheme"
12-
android:usesCleartextTraffic="${usesCleartextTraffic}"
13-
android:supportsRtl="true">
14-
<activity
15-
android:name=".MainActivity"
16-
android:label="@string/app_name"
17-
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
18-
android:launchMode="singleTask"
19-
android:windowSoftInputMode="adjustResize"
20-
android:exported="true">
21-
<intent-filter>
22-
<action android:name="android.intent.action.MAIN" />
23-
<category android:name="android.intent.category.LAUNCHER" />
24-
</intent-filter>
25-
</activity>
26-
</application>
27-
</manifest>
2+
<uses-permission android:name="android.permission.INTERNET"/>
3+
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme" android:usesCleartextTraffic="${usesCleartextTraffic}" android:supportsRtl="true">
4+
<activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:exported="true">
5+
<intent-filter>
6+
<action android:name="android.intent.action.MAIN"/>
7+
<category android:name="android.intent.category.LAUNCHER"/>
8+
</intent-filter>
9+
<intent-filter>
10+
<action android:name="android.intent.action.VIEW"/>
11+
<category android:name="android.intent.category.DEFAULT"/>
12+
<category android:name="android.intent.category.BROWSABLE"/>
13+
<data android:scheme="inappbrowsernitro"/>
14+
</intent-filter>
15+
</activity>
16+
</application>
17+
</manifest>
Lines changed: 58 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,64 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
4-
<dict>
5-
<key>CADisableMinimumFrameDurationOnPhone</key>
6-
<true/>
7-
<key>CFBundleDevelopmentRegion</key>
8-
<string>en</string>
9-
<key>CFBundleDisplayName</key>
10-
<string>InappbrowserNitroExample</string>
11-
<key>CFBundleExecutable</key>
12-
<string>$(EXECUTABLE_NAME)</string>
13-
<key>CFBundleIdentifier</key>
14-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
15-
<key>CFBundleInfoDictionaryVersion</key>
16-
<string>6.0</string>
17-
<key>CFBundleName</key>
18-
<string>$(PRODUCT_NAME)</string>
19-
<key>CFBundlePackageType</key>
20-
<string>APPL</string>
21-
<key>CFBundleShortVersionString</key>
22-
<string>$(MARKETING_VERSION)</string>
23-
<key>CFBundleSignature</key>
24-
<string>????</string>
25-
<key>CFBundleVersion</key>
26-
<string>$(CURRENT_PROJECT_VERSION)</string>
27-
<key>LSRequiresIPhoneOS</key>
28-
<true/>
29-
<key>NSAppTransportSecurity</key>
304
<dict>
31-
<key>NSAllowsArbitraryLoads</key>
32-
<false/>
33-
<key>NSAllowsLocalNetworking</key>
5+
<key>CADisableMinimumFrameDurationOnPhone</key>
6+
<true/>
7+
<key>CFBundleDevelopmentRegion</key>
8+
<string>en</string>
9+
<key>CFBundleDisplayName</key>
10+
<string>InappbrowserNitroExample</string>
11+
<key>CFBundleExecutable</key>
12+
<string>$(EXECUTABLE_NAME)</string>
13+
<key>CFBundleIdentifier</key>
14+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
15+
<key>CFBundleInfoDictionaryVersion</key>
16+
<string>6.0</string>
17+
<key>CFBundleName</key>
18+
<string>$(PRODUCT_NAME)</string>
19+
<key>CFBundlePackageType</key>
20+
<string>APPL</string>
21+
<key>CFBundleShortVersionString</key>
22+
<string>$(MARKETING_VERSION)</string>
23+
<key>CFBundleSignature</key>
24+
<string>????</string>
25+
<key>CFBundleVersion</key>
26+
<string>$(CURRENT_PROJECT_VERSION)</string>
27+
<key>LSRequiresIPhoneOS</key>
3428
<true/>
29+
<key>NSAppTransportSecurity</key>
30+
<dict>
31+
<key>NSAllowsArbitraryLoads</key>
32+
<false/>
33+
<key>NSAllowsLocalNetworking</key>
34+
<true/>
35+
</dict>
36+
<key>NSLocationWhenInUseUsageDescription</key>
37+
<string/>
38+
<key>RCTNewArchEnabled</key>
39+
<true/>
40+
<key>UILaunchStoryboardName</key>
41+
<string>LaunchScreen</string>
42+
<key>UIRequiredDeviceCapabilities</key>
43+
<array>
44+
<string>arm64</string>
45+
</array>
46+
<key>UISupportedInterfaceOrientations</key>
47+
<array>
48+
<string>UIInterfaceOrientationPortrait</string>
49+
<string>UIInterfaceOrientationLandscapeLeft</string>
50+
<string>UIInterfaceOrientationLandscapeRight</string>
51+
</array>
52+
<key>UIViewControllerBasedStatusBarAppearance</key>
53+
<false/>
54+
<key>CFBundleURLTypes</key>
55+
<array>
56+
<dict>
57+
<key>CFBundleURLSchemes</key>
58+
<array>
59+
<string>inappbrowsernitro</string>
60+
</array>
61+
</dict>
62+
</array>
3563
</dict>
36-
<key>NSLocationWhenInUseUsageDescription</key>
37-
<string></string>
38-
<key>RCTNewArchEnabled</key>
39-
<true/>
40-
<key>UILaunchStoryboardName</key>
41-
<string>LaunchScreen</string>
42-
<key>UIRequiredDeviceCapabilities</key>
43-
<array>
44-
<string>arm64</string>
45-
</array>
46-
<key>UISupportedInterfaceOrientations</key>
47-
<array>
48-
<string>UIInterfaceOrientationPortrait</string>
49-
<string>UIInterfaceOrientationLandscapeLeft</string>
50-
<string>UIInterfaceOrientationLandscapeRight</string>
51-
</array>
52-
<key>UIViewControllerBasedStatusBarAppearance</key>
53-
<false/>
54-
</dict>
55-
</plist>
64+
</plist>

0 commit comments

Comments
 (0)