This plugin help developers to access VPN service in their flutter app.
本插件帮助开发者在自己的应用内调用 VPN 服务。
The Android part was implemented by strongswan which support ikev2 protocol.
The iOS part was implemented by NEVPNManager. (Preview)
This plugin is still under development. Issues and PRs are welcome!
Modify your app/build.gradle
to use abiFilter because flutter doesn't support multi-architecture in single apk #18494.
android {
...
buildTypes {
...
release {
...
ndk {
if (project.hasProperty('target-platform') &&
project.property('target-platform') == 'android-arm64') {
abiFilters 'arm64-v8a'
} else {
abiFilters 'armeabi-v7a'
}
}
}
}
}
The plugin will automatically download pre-build native libraries from here if they haven't been downloaded.
You need to open Personal VPN
and Network Extensions
capabilities in Xcode: see Project->Capabilities.
VPN connection errors are handled in swift code, you need to use Xcode to see connection errors if there is any.