AnsweredAssumed Answered

base map not loading with VPN connection

Question asked by zqkun.public@gmail.com on Jan 20, 2016
Latest reply on Jan 20, 2016 by NFurness-esristaff

I successfully opened base map link with user name and password from safari, but this sample app does not work after connect to VPN. The VPN I am using is Cisco AnyConnect. I cannot test without VPN otherwise I am not able to access the server.

 

iOS9.2, server url is a https.

 

The code is simple:

 

- (void)viewDidLoad {
AGSCredential* cred = [[AGSCredential alloc] initWithUser:MAP_UNAME password:MAP_PWD];
   
_baseMapLayer = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:[NSURL URLWithString:BASE_MAP_URL_STRING] credential:cred];
[self.mapView insertMapLayer:_baseMapLayer withName:@"Base" atIndex:0];
   
self.mapView.layerDelegate = self;
}

- (void)mapViewDidLoad:(AGSMapView *)mapView
{
    if (mapView.loaded)
        NSLog(@"map loaded");
    else
        NSLog(@"map not loaded");
}

 

None of the log from mapViewDidLoad get called..

 

I also have problem to debug because it's a enterprise provision file. Is there any place for me to log something to check?

 

Any help..

Outcomes