cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-13372) appURL is nil if wwwFolderName is set to folder name
Date Wed, 04 Oct 2017 05:08:00 GMT

     [ https://issues.apache.org/jira/browse/CB-13372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shazron Abdullah updated CB-13372:
----------------------------------
    Description: 
I have an iPad app where I updated cordova to latest version iOS 4.4.0 webview to load local
html file in www folder that is available in my project. I have set startpage and wwwFolderName
like this -

{code}
-(void)loadCordovaComponent {
    cordovaController = [CDVViewController new];
    cordovaController.startPage = @"index.html";
    cordovaController.hashtag = hashtag;
    cordovaController.wwwFolderName = @"www/newLoad";
    [self addChildViewController:cordovaController];
    [self.cordovaView addSubview:cordovaController.view];
}
{code}

This in turn loads CDVViewController, but appURL is nil and was not loading anything. It goes
into elsePart and couldn't find pathForResource. This line {code}[self.commandDelegate pathForResource:[startURL
path]{code} returns {{nil}} in CDVViewController.

  was:
I have an iPad app where I updated cordova to latest version iOS 4.4.0 webview to load local
html file in www folder that is available in my project. I have set startpage and wwwFolderName
like this -

{code}
-(void)loadCordovaComponent {
    cordovaController = [CDVViewController new];
    cordovaController.startPage = @"index.html";
    cordovaController.hashtag = hashtag;
    cordovaController.wwwFolderName = @"www/newLoad";
    [self addChildViewController:cordovaController];
    [self.cordovaView addSubview:cordovaController.view];
}
{code}

This in turn loads CDVViewController, but appURL is nil and was not loading anything. It goes
into elsePart and couldn't find pathForResource. This line [self.commandDelegate pathForResource:[startURL
path] returns nil in CDVViewController.


> appURL is nil if wwwFolderName is set to folder name
> ----------------------------------------------------
>
>                 Key: CB-13372
>                 URL: https://issues.apache.org/jira/browse/CB-13372
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-ios
>    Affects Versions: 4.4.0
>            Reporter: Aravind Raj Vijayakumar
>            Assignee: Suraj Pindoria
>
> I have an iPad app where I updated cordova to latest version iOS 4.4.0 webview to load
local html file in www folder that is available in my project. I have set startpage and wwwFolderName
like this -
> {code}
> -(void)loadCordovaComponent {
>     cordovaController = [CDVViewController new];
>     cordovaController.startPage = @"index.html";
>     cordovaController.hashtag = hashtag;
>     cordovaController.wwwFolderName = @"www/newLoad";
>     [self addChildViewController:cordovaController];
>     [self.cordovaView addSubview:cordovaController.view];
> }
> {code}
> This in turn loads CDVViewController, but appURL is nil and was not loading anything.
It goes into elsePart and couldn't find pathForResource. This line {code}[self.commandDelegate
pathForResource:[startURL path]{code} returns {{nil}} in CDVViewController.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message