outline-apps
outline-apps copied to clipboard
Looking to utilize OutlineAppleLib in a native application
Hi, So I've been trying to export the OutlineAppleLib and re-use it in a native application so that it does not have the feel of being run as a web app, and every time I get stuck at the part with OutlineVpn.shared.start(). I pass it parameters the same way as Cordova does it ( Read the params being sent by original app and used them ) however, at the end, errorCode always returns vpnStartFailure. The only difference I can identify is in the VpnExtension as the original Outline project has additional info to it apart from the basic network extensions and allow packet tunnel.
Other than that, the entire project is replicated as per the Cordova app including dependencies and everything.
If anyone has previously done so and would have any insights on what I could be missing, do let me know. P.S If any further info is required - i.e my code setup or more, I can attach screenshots as requested.
I have the same problem, did you manage to work around this error?
What platform are you on? MacOS or iOS?
Take a look at the logs for your VpnExtension to see why it's failing. Is the extension crashing? Those logs will give you a better idea of where to look next.
I recently made a barebones sample app for Catalyst that removes all the Cordova parts to help me debug https://github.com/sbruens/SampleCatalystVPN/. It's made for Catalyst but might be useful to you as well to investigate where things are breaking since it's stripped down to the basic functionality of connecting and disconnecting.