语言

Menu
Sites
Language
App got blank screen if launching on family hub (mobile 3.0)

Hey guys,

I wrote a WebApp which gets data from a few REST endpoints. For that I set the option:

<tizen:allow-navigation>website.1.net/ website.2.net/</tizen:allow-navigation>

If I install the app in the emulator (mobile 3.0), then the app starts with a blank screen. I then press the home button and open the app again. Afterwards my app gets fully displayed and has all functions. If I install the app without the option from above (<tizen:allow-navigation>) then the app gets displayed properly at the beginning.

If I install the app on the family hub, which is my main purpose, then the app starts also with a blank screen, but after minimizing and open it up again, my app still has a blank screen. This is not the same behaviour as with the emulator. Anyways if I delete the option <tizen:allow-navigation> and install the app on the family hub, everything works perfectly, of course without any API requests. Here is the error log of the installation. It seems that it just can't find the appId.

12-31 18:43:22.343 : Error / TPL ( 5561 : 5567 ) : tpl_worker_thread.c: __tpl_worker_thread_loop(336) > [TPL_ERROR] epoll fd: 39. | error: 4(Interrupted system call)
12-31 18:43:22.346 : Error / TPL ( 5561 : 5567 ) : tpl_worker_thread.c: __tpl_worker_thread_loop(336) > [TPL_ERROR] epoll fd: 39. | error: 4(Interrupted system call)
12-31 18:43:23.873 : Debug / CAPI_MEDIA_IMAGE_UTIL ( 5561 : 5561 ) : image_util.c: _convert_image_util_error_code(187) > [image_util_encode_create] ERROR_NONE(0x00000000)
12-31 18:43:23.967 : Debug / CAPI_MEDIA_IMAGE_UTIL ( 5561 : 5561 ) : image_util.c: _convert_image_util_error_code(187) > [image_util_encode_run] ERROR_NONE(0x00000000)
12-31 18:43:27.907 : Error / CAPI_APPFW_APPLICATION ( 5619 : 5619 ) : app_error.c: app_error(53) > [app_get_id] INVALID_CONTEXT(0xfef00001) : failed to get the application ID
12-31 18:43:27.912 : Error / CAPI_APPFW_APPLICATION ( 5619 : 5619 ) : app_error.c: app_error(53) > [app_get_id] INVALID_CONTEXT(0xfef00001) : failed to get the application ID
12-31 18:43:41.870 : Error / shp.stub ( 1016 : 1195 ) : ocf_stub.cpp: addProxyService(4973) > [ocf_stub.cpp:4973:addProxyService] shpStub::insertProxyCommands() is error
12-31 18:43:41.870 : Error / shp.stub ( 1016 : 1195 ) : ocf_stub.cpp: InitProxy_ShpStub(410) > [ocf_stub.cpp:410:InitProxy_ShpStub] shpStub::addProxyService() is error
12-31 18:43:41.870 : Error / shp.stub ( 1016 : 1195 ) : ocf_stub.cpp: processRecvData(4841) > [ocf_stub.cpp:4841:processRecvData] command=InitProxy:IPCHandler() is error

 

Now my question is:

What do I need to change, that my app doesn't display a blank screen when it's launching, without removing the <tizen:allow-navigation> stuff?

Thanks to all

响应

3 回复
GEUNSOO KIM

did you set 'access' property on your config.xml?

You may need to set the property too.

like

<access origin="http://website.1.net" subdomains="true"/>

And you set inertent privilege, right?

 

 

André Reus

Please add below privilege and policy in your config.xml as it's required. 
 

<tizen:privilege name="tizen.org/privilege/internet"/>
<access origin="*" subdomains="true"/>

Copied From: https://stackoverflow.com/questions/37873538/unable-to-access-nodejs-server-from-tizen-emulator/37935094#37935094

Hasenmayer

Ohh god guy! You are my HEROs! It perfectly worked with your solutions. I tried it with the access, but I think I forgot the origin -.- how stupid xD Thanks guys!