Update AndroidManifest to include foreground service permissions and implement tracking service in excursion screens. Refactor tracking logic to utilize TrackingService for better state management and streamline position updates.
This commit is contained in:
1 parent
0a737f5153
commit
9261abfc57
6 files changed
+404
-377
No files matched your search
@@ -2,8 +2,8 @@
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> -->
|
||||
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" /> -->
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" />
|
||||
<application
|
||||
android:label="LUPUS"
|
||||
android:name="${applicationName}"
|
||||
@@ -37,11 +37,12 @@
|
||||
android:name="flutterEmbedding"
|
||||
android:value="2" />
|
||||
|
||||
<!-- <service -->
|
||||
<!-- android:name="com.dexterous.flutterlocalnotifications.ForegroundService" -->
|
||||
<!-- android:exported="false" -->
|
||||
<!-- android:stopWithTask="false" -->
|
||||
<!-- android:foregroundServiceType="<location>"> -->
|
||||
<service
|
||||
android:name=".TrackingService"
|
||||
android:exported="false"
|
||||
android:stopWithTask="false"
|
||||
android:foregroundServiceType="location">
|
||||
</service>
|
||||
|
||||
</application>
|
||||
<!-- Required to query activities that can process text, see:
|
||||
|
||||
Reference in new issue
Block a user