Commit 94bae9ec authored by wanglei's avatar wanglei

...前台服务

parent 236fdccf
...@@ -21,4 +21,6 @@ ...@@ -21,4 +21,6 @@
## 常驻通知栏 ## 常驻通知栏
在Application(有可能崩溃) 和 启动页调用
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"> xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<application <application
android:name=".MyApplication" android:name=".MyApplication"
android:allowBackup="true" android:allowBackup="true"
...@@ -34,6 +40,11 @@ ...@@ -34,6 +40,11 @@
</provider> </provider>
<service
android:name=".service.StayJobService"
android:foregroundServiceType="dataSync" />
<meta-data <meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID" android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~3347511713" /> android:value="ca-app-pub-3940256099942544~3347511713" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment