outline-apps icon indicating copy to clipboard operation
outline-apps copied to clipboard

connecting through setting on iphone alert not works in ios 15

Open musakhani opened this issue 5 years ago • 2 comments

hey, if the user tries to connect to the VPN through setting, the app is used to show an alert with the following error: "Please use the outline to connect" but since the ios 15 was released this feature has stopped working and it is stuck on the "connecting..." status please see the below screenshot

IMAGE 2021-11-25 19:21:09

musakhani avatar Nov 25 '21 18:11 musakhani

`

  • (void)startTunnelWithOptions:(NSDictionary *)options completionHandler:(void (^)(NSError *))completionHandler {

    if (options == nil) { NSString *msg = NSLocalizedStringWithDefaultValue( @"vpn-connect", @"Outline", [NSBundle mainBundle], @"Please use the app to connect.", @"Message shown in a system dialog when the user attempts to connect from settings"); [self displayMessage:msg completionHandler:^(BOOL success) { completionHandler([NSError errorWithDomain:NEVPNErrorDomain code:NEVPNErrorConfigurationDisabled userInfo:nil]); exit(0); }]; return; }

`

outline-client/cordova-plugin-outline/apple/vpn/PacketTunnelProvider.m

this is the code that should show the alert but it not works in ios 15

musakhani avatar Nov 25 '21 18:11 musakhani

before it was like this IMAGE 2021-11-25 19:19:29

musakhani avatar Nov 25 '21 18:11 musakhani