Caqil / wireguard_flutter

wireguard_flutter
https://pub.dev/packages/wireguard_flutter
MIT License
24 stars 27 forks source link

Can't connect with ios #18

Closed Bondigame-personal closed 6 months ago

Bondigame-personal commented 6 months ago

Hello and thank you for this package.

I am having trouble with iOS connection to the VPN. Android work perfect. I followed your example, updated the bundle, and checked the VPN configuration. I also reviewed the info.plist and entitlements.

However, it still does not work. In the output log, I see it connecting and immediately disconnecting. It seems to me that the code in PacketTunnelProvider.swift, in the network extension, is not being called at all.

Bondigame-personal commented 6 months ago

Everything is working. My mistake, I didn't specify the bundle id correctly in the code. You need to specify the bundle id of the extension in the code.

providerBundleIdentifier: bundle_Id_of_extension