Marshmallow FINE and COARSE location permission

后端 未结 2 1850
失恋的感觉
失恋的感觉 2021-02-12 19:13

I\'m trying to access ACCESS_FINE_LOCATION and if it cannot be found access ACCESS_COARSE_LOCATION. So I request for those 2 permission, but they give

2条回答
  •  既然无缘
    2021-02-12 19:35

    I have resolved the same problem.Try to give it runtime permission and Firstly check the manifest SDK version and if your version is greater than 6.0 or equal to 6.0 then you need to check permissions for your permission and pass permission Fine location only in request location then definitely it will work.

    if you got stuck in code then you may ask for code I will update you but firstly go through these steps. if you got success to perform your task then rate it.

提交回复
热议问题