jamesmontemagno / Xamarin.Plugins

Cross-platform Native API Access from Shared Code!
MIT License
1.3k stars 380 forks source link

[Win 8.1] Geolocator and Permissions doesn't ask the user ==> can't get position #241

Closed quentinR0bert closed 8 years ago

quentinR0bert commented 8 years ago

Please take a moment to fill out the following (change to preview to check or place x in []):

This is a

Which plugin does this impact:

Version Number of Plugin: 3.0.4 Device Tested On: Surface Simulator Tested On: PC on Win10

Expected Behavior

For the plugin Geolocator get the position For the plugin Permission ask for the permission for Location

Actual Behavior

Geolocator:

Permission: On surface and PC the method CheckPermissionStatusAsync return "Granted" for Location even if the system never ask for or if it's disabled in the parameters. And the method RequestPermissionsAsync(Permission.Location) does nothing.

Finaly i know all this troubles it's because the system have to ask for the permission the first time that a geolocator is called, but the Geolocator or Permission Plugin doesn't done it. The user have to manually set in the parameters. And we can't make the prompt for asking, it's a nativ one called by the system.

Steps to reproduce the Behavior

Launch a app and called for GetPositionAsync or CheckPermissionStatusAsync or RequestPermissionsAsync

jamesmontemagno commented 8 years ago

What type of app are you creating? WinPhone 8.1 RT or Silverlight?

The permissions plugin currently have a blank implementation for all Windows Platforms and will always return Granted.

Did you specify: ID_CAP_LOCATION ?

I am using the code currently in Windows 10 and it prompts right away from the Geolocator code.

quentinR0bert commented 8 years ago

I'm on a Windows 8.1 (Moder UI style) project

okay i understand for the permissions plugin and will wait for it =).

Yes i haved specify the Location capacity in the manifest

jamesmontemagno commented 8 years ago

Is it a RT or a Silverlight project?

quentinR0bert commented 8 years ago

It's a RT project