Is it possible to read, Google Maps navigation notification which are shown periodically as the user moves?
For example the distance remaining from next turn is periodically updated. I tried using the NotificationListenerService for this but the notifications generated by Google Maps don't have any of that information when I try using the method getNotifications().getExtras().
Usually notifications published by messaging apps like Whatsapp have everything that one needs in the extras hashmap but Google map doesn't. Is there a possible workaround for this?
Thanks
From Oreo:
statusBarNotification.getNotification().getExtras()
returns a Bundle with the navigation information.
Before Oreo: It's more tricky as the information is found inside the RemoteViews included in the notification.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With