Languages

Menu
Sites
Language
Build web app using GBS build command

Hi List,

I have two requirements related to Web App development.

1. Until now I have been building my Web App using IDE. I want to build my web app using GBS build command line tool, as it can be done to build native Apps using this tool. Any pointer on this will help me.

2. For native app, I can set it 'Not to display' the app icon on App tray and also not to be managed thru task manager. This can be achieved by setting nodisplay='true' and taskmanage='false'. Is such functionality available for Web Apps too?

 

Your inputs are welcome.

regards,

Ashwini

Responses

4 Replies
Seoghyun Kang

Hello,

 

1. As you know, the JavaScript is an interpreted language. (Excluding special environment)

  So I know that the Javascript and GBS build are not related. The web app is using a package rather than build.

  If I misunderstood your question, please let me know.

 

2. We cannot create the web application of the service type. So I know we cannot hide the icon of the web application.

pius lee

I think it's not impossible but way to hard.

Basically, GBS run .spec file in packaging directory,

So if you make "wgt" package in "%build" part of ".spec" script then you can make normal web application package.

wgt format is same as zip format, if you rename wgt to zip then you can unzip that and you can see the signature1.xml and author-signature.xml

Both of them is made in signing progress, but I don't know how to sign a tpk in shell.

So if you know how to sign the zipped package, you can make wgt with GBS.

 

Ashwini Kumar

Thanks guys, 

 

I want to make my web app a hybrid app, means i want to have a ntive serivce running behind it.

As of now I install the native service separately and web app separatley. Then I launch the native service from web app and use Message Port to communicate and exchange data.

Issue I am facing is related to synchronization at the launch of native service. 

When I launch native service, after that I request some data from it. But it fails, due to the native message port not yet created by then.

Is there any way to wait in Web App, unitll the Native service is launched and running.?

 

2. How do I make my native service as part of the package, so that I can build & install Web app and native service in single step.?

 

Thanx,

Ashwini

AVSukhov

Hello,

2. As i understand, hybrid app implies that web ui app and native service are combined into one package.

https://developer.tizen.org/dev-guide/2.3.1/org.tizen.gettingstarted/html/web/app_model/application_model_w.htm#hap

"Build and run the Web UI application. The service application is built and executed automatically at the same time, and you can find a WGT file (hybrid application package) under the Web UI application project in the Project Explorer view. "

The multi-project hybrid package allows you to install multiple applications at the same time, e.g. the apps (web + native) has the same install life-circle.

 

https://developer.tizen.org/dev-guide/2.3.1/org.tizen.gettingstarted/html/web/process/app_dev_process_w.htm -> Packaging Hybrid Applications

1. Could you please share sample code of using Message port in your native service?