Post

Replies

Boosts

Views

Activity

Reply to How to remove all existing managers from NETunnelProviderManager?
Hi Matt, The loadAllFromPreferences returns only one manager in my case. I load different configurations for different VPN servers in the same manager. Hence I'm not sure what you mean by matching it. I have handled the observer in the MainViewController, like this: override func viewDidLoad() { loadFromPreferences() NotificationCenter.default.addObserver(self, selector: #selector(vpnStatusDidChange(_:)), name: NSNotification.Name.NEVPNStatusDidChange, object: nil) } func loadFromPreferences() {         vpnManager.loadFromPreferences { (error) in       } } This is how I'm listening to changes of NEVPNStatusDidChange. But this only works on the builtin IKEv2. If I use third party VPN frameworks that utilises the NetworkExtension framework, then it doesn't behave correctly. Do you think I should be doing the observer differently? Thanks
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’22
Reply to Can a Network Extension display any UI or launch it's container app?
@Boaz F. @Eskimo We have exact same problem. We support iOS 12+ but displayMessage(_:completionHandler:) is no longer working on iOS 15. The suggestion by Xcode to replace displayMessage(_:completionHandler:) with UILocalNotification is wrong. UILocalNotification was already deprecated in iOS 10. Is this a bug? What should we do? We need a way to notify the user from the NetworkExtension, please. Many thanks
Feb ’22
Reply to Observers observe NEVPNStatusDidChange multiple times when loading NEPacketTunnelProvider more than once
Hello, I have been trying to resolve this issue for days and luckily came across this post here. This is indeed a bug and should be fixed. This is usually an indication of a memory leak, when NEVPNStatusDidChange still get fired by previous managers that have been reconfigured through loadAllFromPreferences(). Our users are complaining the the app slows down after some time and they have to kill the app from memory. We have observed the logs and there are hundreds of notifications accumulating depending on how many times they the user has connected and disconnected from various vpn servers. Has anyone raised this bug yet? Or should I do it? Many Thanks,
Aug ’21