nizwar / openvpn_flutter

A package that allow you to connect OpenVPN service with Flutter
https://pub.dev/packages/openvpn_flutter
GNU General Public License v3.0
84 stars 95 forks source link

Unable to connect on iOS 15.7.1 and lower with "Update Required" in VPN Configuration #61

Closed ahmdsdk closed 1 year ago

ahmdsdk commented 1 year ago

Hello, I am facing an issue while running on iOS 15.7.1 and lower while it works fine on 16.1.1 and 16.1.2. My project's deployment target is 11.0 both in Podfile and in Runner Target general. With iPhone 7 iOS 15.7.1 and iPhone 6 iOS 12.5.6 VPN cannot connect and I get "Update Required" in the VPN Configuration in the iPhone settings. @nizwar can someone help me with this issue?

ahmdsdk commented 1 year ago

Solved by changine VPNExtension Target > Build Settings > Changing iOS deployment target to 11.0 and then Editing the code in PacketTunnelProvider file on line 144 from UserDefaults.init(suiteName: groupIdentifier)?.setValue(formatter.string(from: Date.now), forKey: "connected_on") to UserDefaults.init(suiteName: groupIdentifier)?.setValue(formatter.string(from: Date()), forKey: "connected_on")

Oshaine commented 1 year ago

This does not on IOS, i am still getting Update Required. Any other solutions?

syedabdulbasit1 commented 1 year ago

@ahmdsdk any changes on PacketTunnelProvider file does not effect because it is not calling anywhere