You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/04/23 03:54:56 UTC

[GitHub] [cordova-ios] LynGao opened a new issue #828: Can not load Html file in local sandbox

LynGao opened a new issue #828:
URL: https://github.com/apache/cordova-ios/issues/828


   Hi,I had download the source code (6.0.0-dev) and Integrated into my project .
   I need to load a local h5 by Cordova, but i found it did work. 
   Here is my code to load h5:
   
   MySubCDVViewController.m :
   - (void)viewDidLoad {
         NSString *path =  @"file:///Users/xxxx/Library/Developer/CoreSimulator/Devices/BE86-4FAA-9664-E8E6A73F9249/data/Containers/Data/Application/BD80A056-F436-4AE4-B0F9-D7B3BC194CCE/Documents/xxx/xxx/ss/version/textH5";
   
         self.wwwFolderName = [NSString stringWithFormat:@"file://%@",path];
         [super viewDidLoad];
   }
   
   Here is the final url which create in CDVViewController.m :
   NSURL* appURL = [self appUrl];
   //appurl = file:///Users/xxxx/Library/Developer/CoreSimulator/Devices/BE86-4FAA-9664-E8E6A73F9249/data/Containers/Data/Application/BD80A056-F436-4AE4-B0F9-D7B3BC194CCE/Documents/xxx/xxx/ss/version/textH5/index.html
   
   
   So,the url seem is good, but cordova cannot load this index.html ? 
   Can give a help? 
   Thanks a lot.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org