added notification for tracking function and button to reset map position to current location

time
This commit is contained in:
Nico
2025-05-17 17:43:03 +02:00
parent 895bcf1d5c
commit 94aebeafd0
10 changed files with 169 additions and 19 deletions

View File

@@ -11,6 +11,7 @@ android {
ndkVersion = flutter.ndkVersion
compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
@@ -42,3 +43,7 @@ android {
flutter {
source = "../.."
}
dependencies {
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")
}

View File

@@ -1,8 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> -->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" /> -->
<application
android:label="fforte"
android:name="${applicationName}"
@@ -33,7 +33,14 @@
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
android:value="2" />
<!-- <service -->
<!-- android:name="com.dexterous.flutterlocalnotifications.ForegroundService" -->
<!-- android:exported="false" -->
<!-- android:stopWithTask="false" -->
<!-- android:foregroundServiceType="<location>"> -->
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and