[
https://issues.apache.org/jira/browse/CB-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Grieve resolved CB-4034.
-------------------------------
Resolution: Cannot Reproduce
Assignee: Andrew Grieve
As of 3.1.0, I'm unable to reproduce.
> Cordova fails to initialize if loading startPage from non application bundle
> location
> -------------------------------------------------------------------------------------
>
> Key: CB-4034
> URL: https://issues.apache.org/jira/browse/CB-4034
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.8.0
> Environment: XCode 4.6.3
> iOS, Cordova 2.8, 2.9
> Reporter: Aleksey Yashchenko
> Assignee: Andrew Grieve
>
> When loading webview content from outside application bundle (from app
> Documents folder) Cordova fails to initialize correctly:
> - no deviceready event
> - some plugins are not working (e.g. Contacts plugin)
> There are several other unwanted effects, e.g. when accessign geolocation
> data user asked for permission twice - first time for the whole app (I assume
> by the system), second time for loaded page (by webview?).
> To reproduce the effect:
> - create fresh cordova project
> - built/run
> - from XCode Organized download application content bundle
> - create "Documents/www/*" folder with some tests inside (content of original
> www folder suits well)
> - change AppDelegate:
> {quote}
> // Set your app's start page by setting the <content src='foo.html' />
> tag in config.xml.
> // If necessary, uncomment the line below to override it.
>
> self.viewController.startPage = [[NSURL
> fileURLWithPath:[[[MainViewController applicationDocumentsDirectory]
> stringByAppendingPathComponent:@"www"]
> stringByAppendingPathComponent:@"index.html"]] absoluteString];
> self.viewController.wwwFolderName = [self.viewController.startPage
> stringByDeletingLastPathComponent];
> {quote}
> - see successful page load event in console log:
> {quote}
> ...Resetting plugins due to page load.
> 2013-06-27 21:54:13.329 HelloWorld[6483:907] Finished load of:
> file:///var/mobile/Applications/78E63640-C185-401A-9FEE-9B325F8B9881/Documents/www/index.html
> {quote}
> - deviceready event is not there
--
This message was sent by Atlassian JIRA
(v6.1#6144)