You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing that the plugin is definitely running on Meta Quest 2 but digging into logcat it appears that there is a location related permission error:
11-28 17:19:42.399 29859 29885 I UnityWifiDirect: initializing
11-28 17:19:42.399 29859 29885 I UnityWifiDirect: com.unity3d.player.UnityPlayerActivity
11-28 17:19:42.400 29859 29885 I UnityWifiDirect: Broadcast receiver registered
11-28 17:19:42.403 29859 29859 I wfd_ : Creating WifiDirectHandler
11-28 17:19:42.403 29859 29885 I UnityWifiDirect: bound: true
11-28 17:19:42.407 29859 29859 I wfd_ : Wi-Fi BroadcastReceiver registered
11-28 17:19:42.408 1050 4449 I WifiService: startScan uid=10125
11-28 17:19:42.408 1050 4449 E WifiService: Permission violation - startScan not allowed for uid=10125, packageName=io.github.saltyJeff.wifidirectest, reason=java.lang.SecurityException: UID 10125 has no location permission
11-28 17:19:42.408 29859 29859 I wfd_ : Wi-Fi enabled on load
11-28 17:19:42.408 29859 29859 I wfd_ : WifiDirectHandler created
11-28 17:19:42.409 29859 29859 I wfd_ : Wi-Fi state changed
11-28 17:19:42.409 29859 29859 I wfd_ : Wi-Fi enabled
11-28 17:19:42.414 29859 29859 I wfd_ : Registered with Wi-Fi P2P framework
11-28 17:19:42.414 29859 29859 I wfd_ : P2P BroadcastReceiver registered
11-28 17:19:42.415 29859 29859 I UnityWifiDirect: Binding WifiDirectHandler service
11-28 17:19:42.415 29859 29859 I UnityWifiDirect: ComponentName: ComponentInfo{io.github.saltyJeff.wifidirectest/edu.rit.se.wifibuddy.WifiDirectHandler}
11-28 17:19:42.415 29859 29859 I UnityWifiDirect: Service: edu.rit.se.wifibuddy.WifiDirectHandler$WifiTesterBinder@af552fa
11-28 17:19:42.415 29859 29859 I UnityWifiDirect: WifiDirectHandler service bound
11-28 17:19:42.415 29859 29859 I wfd_ : Wi-Fi P2P State Changed:
11-28 17:19:42.415 29859 29859 I wfd_ : - Wi-Fi Direct is enabled
11-28 17:19:42.425 29859 29885 I UnityWifiDirect: broadcasting service: hello
11-28 17:19:42.425 29859 29885 I wfd_ : Adding local service: hello
11-28 17:19:42.426 29859 29885 I wfd_ : Continuously Discover services called
11-28 17:19:42.426 29859 29885 I wfd_ : Setting up service discovery
11-28 17:19:42.426 29859 29885 I wfd_ : Service discovery listeners registered
11-28 17:19:42.426 29859 29885 I wfd_ : Submitting service discovery task
11-28 17:19:42.426 29859 29885 I UnityWifiDirect: discovering services
11-28 17:19:42.427 29859 29859 D WifiP2pManager: Ignored { when=0 what=139313 target=android.net.wifi.p2p.WifiP2pManager$Channel$P2pHandler }
11-28 17:19:42.427 1050 1169 E WifiPermissionsUtil: UID 10125 has no location permission
11-28 17:19:42.427 29859 29859 I wfd_ : Service discovery request added
11-28 17:19:42.427 29859 29885 I Unity : *** onServiceConnected ***
11-28 17:19:42.427 29859 29859 E wfd_ : Failure adding local service: ERROR
11-28 17:19:42.427 1616 1616 D WifiP2pManager: Ignored { when=-1ms what=139313 target=android.net.wifi.p2p.WifiP2pManager$Channel$P2pHandler }
11-28 17:19:42.427 29859 29859 E wfd_ : Failure initiating service discovery: ERROR
I've tried modifying the manifest as follows (the commented-out line re: WiFi discovery is because adding that causes Unity to fail to build an APK for some reason):
Hello,
I'm seeing that the plugin is definitely running on Meta Quest 2 but digging into logcat it appears that there is a location related permission error:
I've tried modifying the manifest as follows (the commented-out line re: WiFi discovery is because adding that causes Unity to fail to build an APK for some reason):
Not sure what could be going wrong here?
The text was updated successfully, but these errors were encountered: