36 lines
2.0 KiB
XML
36 lines
2.0 KiB
XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|||
|
|
xmlns:tools="http://schemas.android.com/tools">
|
||
|
|
|
||
|
|
<!-- Full-screen incoming-call UI over the lock screen (Android's answer to CallKit). VIBRATE + WAKE_LOCK
|
||
|
|
for the ring; POST_NOTIFICATIONS is also added app-side by android-patch.js. -->
|
||
|
|
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
|
||
|
|
<uses-permission android:name="android.permission.VIBRATE" />
|
||
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||
|
|
|
||
|
|
<application>
|
||
|
|
<!-- Our FirebaseMessagingService REPLACES the @capacitor/push-notifications one: it handles call-wake
|
||
|
|
DATA messages natively (to ring when the app is closed) and forwards everything else to Capacitor's
|
||
|
|
push handling via super.onMessageReceived(). Capacitor's service is removed in the APP manifest
|
||
|
|
(android-patch.js, highest merge priority) so there is exactly one MESSAGING_EVENT receiver; the high
|
||
|
|
intent-filter priority here is belt-and-braces so ours wins even if that removal ever no-ops. -->
|
||
|
|
<service
|
||
|
|
android:name="com.bizgaze.connect.nativecall.BzCallMessagingService"
|
||
|
|
android:exported="false">
|
||
|
|
<intent-filter android:priority="999">
|
||
|
|
<action android:name="com.google.firebase.MESSAGING_EVENT" />
|
||
|
|
</intent-filter>
|
||
|
|
</service>
|
||
|
|
|
||
|
|
<!-- The full-screen incoming-call screen. showWhenLocked + turnScreenOn make it appear over the lock
|
||
|
|
screen and wake the display; excludeFromRecents keeps it out of the recents list. -->
|
||
|
|
<activity
|
||
|
|
android:name="com.bizgaze.connect.nativecall.IncomingCallActivity"
|
||
|
|
android:exported="false"
|
||
|
|
android:launchMode="singleTop"
|
||
|
|
android:excludeFromRecents="true"
|
||
|
|
android:showOnLockScreen="true"
|
||
|
|
android:showWhenLocked="true"
|
||
|
|
android:turnScreenOn="true"
|
||
|
|
android:theme="@android:style/Theme.DeviceDefault.NoActionBar" />
|
||
|
|
</application>
|
||
|
|
</manifest>
|