Search Unity

"Can this application use your location?" message on running app.

Discussion in 'Windows' started by Nolex, May 2, 2014.

  1. Nolex

    Nolex

    Joined:
    Dec 10, 2010
    Posts:
    116
    I rebuild my app on newest version Unity (4.3.1) and on splashscreen i have a system message "Can this application use your location?" and in MainPage.xaml.cs has been void SetupGeolocator().

    It really need? In previous version (build in unity 4.2) this was not.
     
  2. GarthSmith

    GarthSmith

    Joined:
    Apr 26, 2012
    Posts:
    1,240
    In your Package.appxmanifest file, under Capabilities, do you have "Location" checked?
     
  3. Nolex

    Nolex

    Joined:
    Dec 10, 2010
    Posts:
    116
    The option is there, but if builds Unity 4.2, then no this system message.
    $capsavailable.png

    I understand that it should be .. Thanks!
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,735
    This is in comformance with Microsoft requirements. Application must ask user consent before using location.
    If you use location serveces in your game, that message must be shown to user (you can however reprogram it, the code is in generated solution).

    This did not happen in 4.2, because there were no support for location services yet.