graphhopper / graphhopper-navigation-example-legacy

GraphHopper Navigation as App
https://www.graphhopper.com/open-source/
Apache License 2.0
93 stars 49 forks source link

android 12 (31) #52

Open j0sem4rio opened 1 year ago

j0sem4rio commented 1 year ago

I'm trying to update my application to Android SDK 31 but I'm having an issue with graphhopper Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.

I already tried to solve this problem with Override, but I couldn't.

boldtrn commented 1 year ago

Yes, this is a known problem. Feel free if you want to open a PR for a fix. Otherwise you might be interested in having a look at https://github.com/maplibre/maplibre-navigation-android - we have fixed this bug a few months ago there.