Browse Source

[fix]自启动权限问题

zk 11 months ago
parent
commit
64e6875c2a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      android/app/src/main/AndroidManifest.xml

+ 2 - 1
android/app/src/main/AndroidManifest.xml

@@ -84,7 +84,8 @@
         <receiver
             android:name="com.pravera.flutter_foreground_task.service.RebootReceiver"
             android:enabled="true"
-            android:exported="true">
+            android:exported="true"
+            tools:node="replace">
 
             <intent-filter>
                 <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />