Skip to content

Commit 8332c11

Browse files
committed
Add deeplinks demos to activities
Supported URLs are "batch-sample://unlock" and "batch-sample://notification-settings"
1 parent b217cba commit 8332c11

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Sample_Project/sample/app/src/main/AndroidManifest.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838
<meta-data
3939
android:name="android.support.PARENT_ACTIVITY"
4040
android:value="com.batch.android.sample.activity.MainActivity" />
41+
<intent-filter>
42+
<action android:name="android.intent.action.VIEW" />
43+
<category android:name="android.intent.category.DEFAULT" />
44+
<category android:name="android.intent.category.BROWSABLE" />
45+
<data android:scheme="batch-sample"
46+
android:host="notification-settings" />
47+
</intent-filter>
4148
</activity>
4249
<activity
4350
android:name=".activity.UnlockActivity"
@@ -46,6 +53,13 @@
4653
<meta-data
4754
android:name="android.support.PARENT_ACTIVITY"
4855
android:value="com.batch.android.sample.activity.MainActivity" />
56+
<intent-filter>
57+
<action android:name="android.intent.action.VIEW" />
58+
<category android:name="android.intent.category.DEFAULT" />
59+
<category android:name="android.intent.category.BROWSABLE" />
60+
<data android:scheme="batch-sample"
61+
android:host="unlock" />
62+
</intent-filter>
4963
</activity>
5064

5165
<!-- Batch's Required manifest items -->

0 commit comments

Comments
 (0)