Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

App works on Android Emulator, but not on device

Discussion in 'Android' started by nsmith1024, Jan 26, 2020.

  1. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    870
    Hello,

    I made a Unity app for android. The app access the internet using WWW, but for some reason it is able to access internet when run on the emulator, but when i put the same app on a device, its not able to access the internet.

    I have my manifest like this, anybody has any idea why it dont work on the device?
    Code (CSharp):
    1.   <uses-feature android:name="android.hardware.camera" />
    2.  
    3.   <uses-permission android:name="android.permission.INTERNET" />
    4.   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    5.   <uses-permission android:name="android.permission.FLASHLIGHT"/>
    6.   <uses-permission android:name="android.permission.CAMERA" />
    7.   <uses-permission android:name="android.permission.RECORD_AUDIO"/>
    8.   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
     
  2. kaarloew

    kaarloew

    Joined:
    Nov 1, 2018
    Posts:
    360
    Did you check what adb logcat complains with real device?