Skip to content

Commit

Permalink
Change the foreground service type for gRPC to match the survey servi…
Browse files Browse the repository at this point in the history
…ce and update the CHANGELOG for 1.26
  • Loading branch information
christianrowlands committed Jun 28, 2024
1 parent 7df78a3 commit 111f3a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## [1.26](https://github.com/christianrowlands/android-network-survey/releases/tag/v1.26) - 2024-06-28

* Fixes a bug with gRPC streaming on Android 14.
* Fixes a couple edge case app crashes.
* Display the serving cell on the Tower Map.
* Draws a line to teh serving cell on the Tower Map.
* Adds a follow me button to the Tower Map.
* Keeps the same zoom level when going to your location on the Tower Map.

## [1.25](https://github.com/christianrowlands/android-network-survey/releases/tag/v1.25) - 2024-06-14

* Adds a Tower Map view that shows the location of cellular towers.
Expand Down
4 changes: 1 addition & 3 deletions networksurvey/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> <!-- Needed to start the service at boot -->
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING" />

<uses-feature
android:name="android.hardware.location.gps"
Expand Down Expand Up @@ -80,8 +79,7 @@
<service
android:name=".services.GrpcConnectionService"
android:description="@string/connection_service_description"
android:exported="false"
android:foregroundServiceType="remoteMessaging" />
android:exported="false" />

<meta-data
android:name="android.content.APP_RESTRICTIONS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ private synchronized void updateConnectionNotification()

if (Build.VERSION.SDK_INT > Build.VERSION_CODES.TIRAMISU) {
startForeground(NetworkSurveyConstants.GRPC_CONNECTION_NOTIFICATION_ID, notification,
ServiceInfo.FOREGROUND_SERVICE_TYPE_REMOTE_MESSAGING);
ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION);
} else {
startForeground(NetworkSurveyConstants.GRPC_CONNECTION_NOTIFICATION_ID, notification);
}
Expand Down

0 comments on commit 111f3a8

Please sign in to comment.