语言

Menu
Sites
Language
How to get web app data to native app?

Hi,

1)I had native application, from which i had launched web application using Launchapplication api. Now i want to get the web app data in my native app. can you give information how to get the web app data in native app. 

2)I had one more question is there any way such that directly using web socket mechanism is native app. if possible please guide me the procedure

Thanks & Regards

 

响应

3 回复
Marco Buettner

1.) You can use MessagePort to send and recieve data from another application

Alex Ashirov

Hi,

You can take a look at Hybrid application sample. It demonstrates how web application communicates with native application using Message Port.

Alex Dem

Hi,
Regarding second question:
Web socket mechanism is supported for Tizen Web apps only: https://developer.tizen.org/documentation/articles/web-sockets .
For Native TCP and UDP are supported: https://developer.tizen.org/dev-guide/2.2.1/org.tizen.native.appprogramming/html/guide/net/sockets.htm
Alexey.