Could I get localStorage data in swift ?
I need to read dynamic data from webview in swift before the vpn start connection. So I wonder know is there any ways to read data from localstorage.
I think you can set something up where you send the info you need over IPC. https://github.com/Jigsaw-Code/outline-client/blob/6356371797cf882a9472f8be4aa9f8c7bbfb3d21/src/www/app/cordova_main.ts#L52-L53
Sorry but I have no idea how to do with these, could you please show me a simple sample if could? Thank you very much.
I need to read localstorage data in OutlineAppleLib/Sources/OutlineTunnel/OutlineVpn.swift or OutlineAppleLib/Sources/OutlineTunnel/OutlineTunnel.swift
What's your goal?
What's your goal?
I need to get different settings info by user while setup vpn every time before connect.
What's your goal?
I need to get different settings info by user while setup vpn every time before connect.
But what are the settings for? Can you not do it in the web view?
What's your goal?
I need to get different settings info by user while setup vpn every time before connect.
But what are the settings for? Can you not do it in the web view?
Well, I want to set includedRoutes and excludedRoutes or dnsSettings for different users, so I think maybe I could only get the info dynamically and set it up while every time we setup vpn.
What's your goal?
I need to get different settings info by user while setup vpn every time before connect.
But what are the settings for? Can you not do it in the web view?
Well, I want to set
includedRoutesandexcludedRoutesordnsSettingsfor different users, so I think maybe I could only get the info dynamically and set it up while every time we setup vpn.
You might be able to do this through the dynamic key maybe? https://www.reddit.com/r/outlinevpn/wiki/index/dynamic_access_keys/
Then you'll need to write a plugin (or extend the existing one): https://cordova.apache.org/docs/en/11.x/guide/platforms/ios/plugin.html