ostrya / PresencePublisher

An Android MQTT client that regularly publishes messages to notify about the device's presence
MIT License
83 stars 13 forks source link

App ist not ablesbar top determine Position on Samsung Note8 After Update top android9 #4

Closed anka112 closed 5 years ago

anka112 commented 5 years ago

S8nce my note 8 hast been Updates to Android 9the presence präsenter ist not ablesbar to determine the Position. My State ist always schon als offline.

ostrya commented 5 years ago

Android 9 has put more restrictions on when an app is able to read the name of the currently connected wifi network. While any app could read the wifi name in Android up to 8.1, from Android 9 onwards, an app needs to be granted the coarse or fine location permission. Additionally, the location service of the phone needs to be permanently enabled (at least "network-based location").

In theory, when you open the main activity, the app should show you a notification that you need to give it access to coarse location, and then another notification that you need to enable coarse location services.

Did you get these notifications? And have you enabled both the permission for the app and the location services?

Albadon commented 5 years ago

My device was also having issues after upgrading to Android 9. I don't know if you're experiencing the same issue, but I found the following message in the Logcat: '"MY_SSID"' does not match desired network'MY_SSID', skipping.

8 should fix this.

ostrya commented 5 years ago

@anka112 Can you confirm the issue is fixed with version 1.4.2?

ostrya commented 5 years ago

Closing issue due to missing feedback.