File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ publishing {
59
59
create<MavenPublication >(" Release" ) {
60
60
groupId = " solutions.s4y.gps"
61
61
artifactId = " gps-sdk-android"
62
- version = " 3.0.1 "
62
+ version = " 3.1.0 "
63
63
64
64
pom {
65
65
packaging = " aar"
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
3
-
3
+ <!-- SDK34 requires for FGS during boot-->
4
+ <uses-permission android : name =" android.permission.ACCESS_BACKGROUND_LOCATION" />
4
5
<uses-permission android : name =" android.permission.ACCESS_COARSE_LOCATION" />
5
6
<uses-permission android : name =" android.permission.ACCESS_FINE_LOCATION" />
6
7
<uses-permission android : name =" android.permission.FOREGROUND_SERVICE" />
7
8
<uses-permission android : name =" android.permission.FOREGROUND_SERVICE_LOCATION" />
8
9
<uses-permission android : name =" android.permission.INTERNET" />
10
+ <uses-permission android : name =" android.permission.POST_NOTIFICATIONS" />
9
11
<uses-permission android : name =" android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
10
- <!-- Should be added to the app's manifest file
12
+ <!-- Should be added to the app's manifest file because not apps require it
11
13
<uses-permission android:name="android.permission.QUICKBOOT_POWERON" />
12
14
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
13
15
-->
Original file line number Diff line number Diff line change @@ -8,10 +8,8 @@ class BootReceiver : BroadcastReceiver() {
8
8
override fun onReceive (context : Context , intent : Intent ) {
9
9
if (Intent .ACTION_BOOT_COMPLETED == intent.action || " android.permission.QUICKBOOT_POWERON" == intent.action) {
10
10
if (GPSPreferences .keepAlive(context)) {
11
- val startIntent = Intent (context, GPSUpdatesForegroundService ::class .java)
12
11
// it is assumed service will be configured in Application.onCreate
13
- startIntent.action = GPSUpdatesForegroundService .ACTION_START
14
- context.startService(startIntent)
12
+ GPSUpdatesForegroundService .start(context)
15
13
}
16
14
}
17
15
}
You can’t perform that action at this time.
0 commit comments