Search Unity

Android manifest and permission question

Discussion in 'Android' started by RyuMaster, Mar 7, 2019.

  1. RyuMaster

    RyuMaster

    Joined:
    Sep 13, 2010
    Posts:
    468
    Hi! I build my app with Unity, app uses GPS and internet. When I install it on Android, it never asks for any special permission tho. Because of it, app fails to work properly, as it needs GPS.

    But, in StaginArea manifest file, all seems proper!

    Code (JavaScript):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.OrvaldMaxwell.NadinkaFantasy" xmlns:tools="http://schemas.android.com/tools" android:installLocation="preferExternal">
    3.   <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
    4.   <application android:theme="@style/UnityThemeSelector" android:icon="@mipmap/app_icon" android:label="@string/app_name">
    5.     <activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:screenOrientation="portrait" android:launchMode="singleTask" android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density" android:hardwareAccelerated="false">
    6.       <intent-filter>
    7.         <action android:name="android.intent.action.MAIN" />
    8.         <category android:name="android.intent.category.LAUNCHER" />
    9.       </intent-filter>
    10.       <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
    11.     </activity>
    12.     <meta-data android:name="unity.build-id" android:value="62f2075a-58b0-4979-a608-296b44bd0d09" />
    13.     <meta-data android:name="unity.splash-mode" android:value="0" />
    14.     <meta-data android:name="unity.splash-enable" android:value="True" />
    15.   </application>
    16.   <uses-feature android:glEsVersion="0x00020000" />
    17.   <uses-permission android:name="android.permission.INTERNET" />
    18.   <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    19.   <uses-feature android:name="android.hardware.location.gps" android:required="false" />
    20.   <uses-feature android:name="android.hardware.location" android:required="false" />
    21.   <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
    22.   <uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" />
    23.   <uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false" />
    24. </manifest>
    Any idea, what else am I missing? I remember, long ago my app was asking for permissions during launch, but then I came back after 1 year or so with fresh Unity, and that is what I get.
     
  2. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,966
    What device are you testing on?