Browse Source

[fix]自启动权限问题

zk 1 năm trước cách đây
mục cha
commit
64e6875c2a
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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" />