Languages

Menu
Sites
Language
Wearable Widget Web Application Connection Error

I am developing a web widget for wearables for Tizen 2.3.2. The app needs to connect to the internet to gather data. The app retrieves data successfully in all cases except when you turn off and then turn on the device. When I turn on the device and the widget is already loaded it won't connect to the internet to gather data. I opened the device's log and it says the following: CAPI_NETWORK_CONNECTION conecection_create(444) > Access denied. And then this message appears from STARFISH tag got error while opening tizen network connection. Has already seen this kind of problem before, and how can it be solved?

Thanks

Responses

4 Replies
André Reus

I didn't find any problem like this. Which device are you using for Tizen 2.3.2?

Please share more details and some code snippet of yours. 

 

Victor Heredia

I am using a Samsung Gear S2. This is the code I am using for making the request:

this.makeRequest = function(url, callback, params){
            var request = new XMLHttpRequest();  
            request.onreadystatechange = function(){
                if (this.readyState === 4) {
                    if (this.status === 200) {
                        callback(JSON.parse(this.response), params);
                    }
                }
            };
            request.open("GET", url, true);
            request.send(null);  
        };

I have the same code for the companion app I am developing and also for the watchface and they are working all fine. It is only giving me problems in the web widget.

Thanks.

André Reus

Then you should use Tizen 2.3.1. As per my knowledge, Tizen 2.3.2 may be for Gear S3. 

 

Victor Heredia

Thanks dude.