언어 설정

Menu
Sites
Language
Hosted Web Applications

We're currently working on a Tizen web application for our company. We're very interested creating a hosted web application, however, we're unable to to get the external content src in the config.xml to work. So ultimately, we'd like to develop a single-page application and have the app call the index page of that application and server that as the app experience. This way we can use some PHP that we used for the initial generation of some of the DOM, as well as some of the OAuth we have for social media sites. Is this possible? We've seen mention of hosted web applications in the documentation, but again, when using the following it does not work:

<content src="link/to/external/app/page"/>

What are we missing in addition to this step? We appreciate the help and support of the community.

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

7 댓글
Lakshmi Grandhi
Tizen supports hosted applications, i didn't get what is your problem, You directly launch application using src in content tag. Can you please share information, wha t is your issue. I tried calling page file inside link/to/external/app folder, it is able to launch that page.
Jasper Valero
Lakshmi, As I stated above, the problem is I set the src in the content tag and it isn't working. Not sure how much clearer I can be about that. Also, I'd be interested to know how you called the link "link/to/external/app" as that is just an example placeholder and is not valid in the slightest? So how is it that you were able to launch a non-existing page with a fake link? The actual link would be an actual URL, not a placeholder.
Jasper Valero
Is it actually possible at this time to do a hosted web application where all of the files exist outside of the app package besides the config.xml, etc. So basically it points to an external page, which is actually a single-page application?
Lakshmi Grandhi
I think its possible, but the single-page application who are trying to access should be hosted in public domain. I tried removed index, js, css file with only config file and my config file content src is pointing "http://sheldonbrown.com/web_sample1.html". It worked properly.
Jasper Valero
Okay I tried doing the same thing, even using the same link you did and I just keep getting "There is an error in the configuration file." dialog box. Here is my current config.xml source:

< widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/HostedApplicationTest" version="1.0.0" viewmodes="maximized">
    < access origin="*" subdomains="true"/>
    < tizen:application id="vaiZF3BzQ0" required_version="1.0"/>
    < content src="http://sheldonbrown.com/web_sample1.html"/>
    < icon src="icon.png"/>
    < name>HostedApplicationTest
    < tizen:setting screen-orientation="portrait" context-menu="enable" background-support="enable" encryption="disable" install-location="auto"/>
< /widget>
Please note the extra spaces in between the < and the tag name, i.e. (< widget) are so that the code can be rendered here on the forums. The source in the file does not include these spaces. I've also tried setting this URL in the < tizen:content src="">. Both give the same error.
Frédéric Delgado
I have the same problem when I want to deploy on the chrome simulator. Did you found where is the problem ? Thanks.
Lakshmi Grandhi
Hi Fredoust, Config file and widget is required to run application on Emulator or Device. For simulator the changes done in config file for hosted application will not work.