Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Can't save config when connecting though "Intent Extension". #223

Open
houmie opened this issue Sep 19, 2021 · 1 comment
Open

Can't save config when connecting though "Intent Extension". #223

houmie opened this issue Sep 19, 2021 · 1 comment

Comments

@houmie
Copy link

houmie commented Sep 19, 2021

Hi @ss-abramchuk,

I hope you are feeling better, mate.

When trying to connect the following steps have to be taken:

self.tunnelProviderManager?.loadFromPreferences and then 
self.tunnelProviderManager?.saveToPreferences

if no errors then load the config again:
self.tunnelProviderManager?.loadFromPreferences
and only then connect:
self.tunnelProviderManager!.connection.startVPNTunnel()

This works fine from the app. But when using Siri shortcuts and trying to connect though Intent extension, it fails at saving the config:

Failed to save configuration: Error Domain=NEVPNErrorDomain Code=1 "configuration type is wrong" UserInfo={NSLocalizedDescription=configuration type is wrong}

Is there anyway to know why it thinks the config is wrong?

Many Thanks,
Houman

@alessionossa
Copy link

Hello, FYI I was trying to implement Siri Shortcuts/Intents integration for a VPN iOS app and got the same error. It looks like it’s an Apple bug https://developer.apple.com/forums/thread/96020 😕. That’s super annoying because it means we just can’t update configurations at the moment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants