Results 1 to 8 of 8

Thread: no d?finition for RequestAccessAsync in windows10 but i need it

  1. #1
    blaise is offline C# Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2016
    Posts
    5
    Rep Power
    0

    no d?finition for RequestAccessAsync in windows10 but i need it

    this is normal with windows10 for a universal application since it is the OS that manages the permission of the user OK fine !!! But my app is automatically compatible windows 8.x at submission store and it fails since with 8.x it is the programmer who manages the authorization with the code:
    Code:
      Var accessStatus = await Geolocator.RequestAccessAsync (); request access
    Switch (accessStatus) // test accessStatus
    
    In visual studio 2015 no definition in geolocator for requestaccessasync (), (only "equal" and "reference equal") someone would know how to get around this problem I've been searching for a week and i can use this function with visualstudio10
    merry chrismas for everyone

  2. #2
    JuggaloBrotha's Avatar
    JuggaloBrotha is offline C# Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Apr 2011
    Location
    Lansing, MI; USA
    Posts
    85
    Rep Power
    76
    What does Geolocator.RequestAccessAsync() return?
    We have no idea what Object or variable accessStatus even is to begin helping you.

  3. #3
    blaise is offline C# Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2016
    Posts
    5
    Rep Power
    0
    Quote Originally Posted by JuggaloBrotha View Post
    What does Geolocator.RequestAccessAsync() return?
    We have no idea what Object or variable accessStatus even is to begin helping you.
    nothing because if i call this methode in visualstudio 2015 return "geolocator no contain d?finition for requestaccessasync".I think that is because on windows10 this request is managed automaticly by the OS and doesn't exist more but i need it forcompatibility with window8.Something about this,do you understand?

  4. #4
    JohnH's Avatar
    JohnH is offline C# Forum Moderator
    .NET Framework
    .NET 4.5
    Join Date
    Apr 2011
    Location
    Norway
    Posts
    331
    Rep Power
    87
    I think you have the wrong project type, in Win8 you probably have Windows Phone 8 app, with Win10 you need Universal Windows app according to this: Geolocator class - Windows app development

    Move from Windows Runtime 8.x to UWP'

  5. #5
    blaise is offline C# Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2016
    Posts
    5
    Rep Power
    0
    Quote Originally Posted by JohnH View Post
    I think you have the wrong project type, in Win8 you probably have Windows Phone 8 app, with Win10 you need Universal Windows app according to this: Geolocator class - Windows app development

    Move from Windows Runtime 8.x to UWP'
    I have tried it with windowsphone 8.1 but it' the same, thank.
    Last edited by blaise; 12-28-2016 at 4:12 AM.

  6. #6
    JohnH's Avatar
    JohnH is offline C# Forum Moderator
    .NET Framework
    .NET 4.5
    Join Date
    Apr 2011
    Location
    Norway
    Posts
    331
    Rep Power
    87
    Quote Originally Posted by blaise View Post
    I have tried it with windowsphone 8.1 but it' the same, thank.
    For that I think you need to install "Windows 8.1 and Windows Phone 8.0/8.1 Tools" on Windows 10. I'm using VS 2015 and see that is an option ('install w8 tools') in New Project dialog under Windows 8, or modify VS setup and select same there.

  7. #7
    blaise is offline C# Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2016
    Posts
    5
    Rep Power
    0
    Quote Originally Posted by JohnH View Post
    For that I think you need to install "Windows 8.1 and Windows Phone 8.0/8.1 Tools" on Windows 10. I'm using VS 2015 and see that is an option ('install w8 tools') in New Project dialog under Windows 8, or modify VS setup and select same there.
    "Windows 8.1 and Windows Phone 8.0/8.1 Tools" on window 10 are installed, have a good day, thank

  8. #8
    blaise is offline C# Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2016
    Posts
    5
    Rep Power
    0
    Quote Originally Posted by blaise View Post
    "Windows 8.1 and Windows Phone 8.0/8.1 Tools" on window 10 are installed, have a good day, thank
    OK I'm find the solution here c# - Geolocator.RequestAccessAsync method - Stack Overflow thank for help
    happy new year

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •