ntfy-android/app/src/main/AndroidManifest.xml

85 lines
3.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2021-11-01 08:19:25 +13:00
package="io.heckel.ntfy">
2021-11-14 13:26:37 +13:00
<!--
Permissions
- FOREGROUND_SERVICE is needed to support "use another server" feature
- WAKE_LOCK & RECEIVE_BOOT_COMPLETED are required to restart the foreground service
if it is stopped; see https://robertohuertas.com/2019/06/29/android_foreground_services/
-->
2021-11-22 08:54:13 +13:00
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
2021-11-14 13:26:37 +13:00
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
2021-11-28 10:18:09 +13:00
<uses-permission android:name="android.permission.VIBRATE" />
2021-10-26 08:39:52 +13:00
<application
2021-11-01 08:19:25 +13:00
android:name=".app.Application"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
2021-11-14 13:26:37 +13:00
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">
2021-10-30 14:13:58 +13:00
<!-- Main activity -->
2021-11-01 08:19:25 +13:00
<activity
android:name=".ui.MainActivity"
android:label="@string/app_name">
<intent-filter>
2021-11-01 08:19:25 +13:00
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
2021-11-23 09:45:43 +13:00
</activity>
<!-- Detail activity -->
<activity
android:name=".ui.DetailActivity"
android:parentActivityName=".ui.MainActivity">
2021-11-01 08:19:25 +13:00
<meta-data
android:name="android.support.PARENT_ACTIVITY"
2021-11-22 08:54:13 +13:00
android:value=".ui.MainActivity"/>
<!-- Open https://ntfy.sh links with the app -->
<intent-filter android:label="@string/app_name">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="@string/app_base_scheme"
android:host="@string/app_base_host"
android:pathPattern="/..*" /> <!-- This is awful, but it's the only way in Android -->
</intent-filter>
2021-11-23 09:45:43 +13:00
</activity>
<!-- Subscriber foreground service for hosts other than ntfy.sh -->
<service android:name=".msg.SubscriberService"/>
<!-- Subscriber service restart on reboot -->
2021-11-22 08:54:13 +13:00
<receiver
android:name=".msg.SubscriberService$StartReceiver"
android:enabled="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
2021-11-23 09:45:43 +13:00
</receiver>
2021-11-25 10:12:51 +13:00
<!-- Firebase messaging (note that this is empty in the F-Droid flavor) -->
2021-11-01 08:19:25 +13:00
<service
2021-11-25 10:12:51 +13:00
android:name=".firebase.FirebaseService"
2021-11-01 08:19:25 +13:00
android:exported="false">
2021-10-30 14:13:58 +13:00
<intent-filter>
2021-11-01 08:19:25 +13:00
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
2021-10-30 14:13:58 +13:00
</intent-filter>
</service>
2021-11-01 08:19:25 +13:00
<meta-data
android:name="firebase_analytics_collection_enabled"
android:value="false"/>
2021-10-30 14:13:58 +13:00
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
2021-11-24 04:52:27 +13:00
android:resource="@drawable/ic_notification"/>
</application>
2021-11-01 08:19:25 +13:00
</manifest>