Closed Suzven closed 11 months ago
Hi @Suzven, thank you for reaching out with your question.
Did you try setting location shared to true
before asking for permission?
You likely need to call OneSignal.Location.setShared(true)
before calling OneSignal.Location.requestPermission()
.
closing due to no response
How can we help?
Hi! I updated the SDK version in my flutter application and get problem that the user's geolocation not collected. Prompt location request did not show
I tried: 1) checked for isSharedLocation() - in response I received
"true"
: 2) Add to manifest permissionsACCESS_FINE_LOCATION
,ACCESS_COARSE_LOCATION
,ACCESS_BACKGROUND_LOCATION
; 3) add tobuild.gradle
implementation ofgms:play-services-location:21.0.1
; 4) rebuild project; 5) tested it on 3 real devices and 4 emulators; 6) downgrade to previous version 3.5.1 of flutter sdk - all works fine; 7) added/removed theawait
modifier.My code on screenshot:
Screenshot from OneSignal Dashbord with examples of test installs:
Code of Conduct