Skip to content

Commit eed143f

Browse files
committed
feat: add push notifications for web and android
1 parent 0b6dc85 commit eed143f

27 files changed

+1870
-51
lines changed

android/app/src/main/AndroidManifest.xml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@
1818
<action android:name="android.intent.action.MAIN" />
1919
<category android:name="android.intent.category.LAUNCHER" />
2020
</intent-filter>
21+
22+
<!-- Deep links for Adamant -->
23+
<intent-filter android:autoVerify="true">
24+
<action android:name="android.intent.action.VIEW" />
25+
<category android:name="android.intent.category.DEFAULT" />
26+
<category android:name="android.intent.category.BROWSABLE" />
27+
<data android:scheme="adamant" />
28+
</intent-filter>
29+
<intent-filter android:autoVerify="true">
30+
<action android:name="android.intent.action.VIEW" />
31+
<category android:name="android.intent.category.DEFAULT" />
32+
<category android:name="android.intent.category.BROWSABLE" />
33+
<data android:scheme="adm" />
34+
</intent-filter>
2135
</activity>
2236

2337
<provider
@@ -27,10 +41,24 @@
2741
android:grantUriPermissions="true">
2842
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
2943
</provider>
44+
45+
<!-- Firebase Messaging Service for Push Notifications -->
46+
<service
47+
android:name="com.capacitorjs.plugins.pushnotifications.MessagingService"
48+
android:exported="false">
49+
<intent-filter>
50+
<action android:name="com.google.firebase.MESSAGING_EVENT" />
51+
</intent-filter>
52+
</service>
53+
3054
</application>
3155

3256
<!-- Permissions -->
33-
3457
<uses-permission android:name="android.permission.INTERNET" />
3558
<uses-permission android:name="android.permission.CAMERA" />
36-
</manifest>
59+
<!-- Push Notifications -->
60+
<uses-permission android:name="android.permission.WAKE_LOCK" />
61+
<uses-permission android:name="android.permission.VIBRATE" />
62+
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
63+
64+
</manifest>

0 commit comments

Comments
 (0)