Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Manatee12's avatar
Manatee12
Honored Guest
5 years ago

Open socket permission denied in Unity project with Android native plugin C library

I am planing to use some network connections in a Unity project I plan developing for the Oculus quest. I created a simple project to get network communication working. The communication library is a native C library which is loaded using DllImport. The native C library access the network stack socket API. The project works fine on Windows however when I run it on the Quest I get the error:
OS socket() failure, error 0XD: Permission denied

Is there anything I have to do to set the right permissions? How to I get permissions to access the network stack socket API.

1 Reply

  • Problem solved. Forgot to add one of the permissions in the manifest file