0

in my app, I will fetch VPN profile config from server and create a VPN model. at first I easily install profile if there isn't previous profile config. but if profile config changed I have to change installed profile config such as server address and etc. how can I change or delete previous VPN profile or what's the best case to solve my problem?

Cœur
  • 37,241
  • 25
  • 195
  • 267

1 Answers1

2

NEVPNManager includes a removeFromPreferences API that you can use to remove your VPN configuration.

If you change the profile (e.g. the protocolConfiguration), you can also call saveToPreferencesWithCompletionHandler:.

Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215