Languages

Menu
Sites
Language
push_service_register() returning 0 but result_callback() result is timeout

I am preparing a Native application demonstrating the Tizen Push Serivce. I got the App ID and App Key from Tizen Push Server. Added all required privileges in manifest file and device is connect to internet via wifi. 

push_service_connect() is success. push_service_register() returning 0 but result_callback() result is PUSH_SERVICE_RESULT_TIMEOUT.

 

Responses

3 Replies
Armaan-Ul- Islam

You may already know push_service_result_e returns one of following:

 

PUSH_SERVICE_RESULT_SUCCESS 

Successful

PUSH_SERVICE_RESULT_TIMEOUT 

Request timed out

PUSH_SERVICE_RESULT_SERVER_ERROR 

Push server error

PUSH_SERVICE_RESULT_SYSTEM_ERROR 

System error

 

Prime reason for "Request timed out" can be connectivity Issue. As you know the device has to communicate with Push Server, Please make sure your device has stable connection to internet. Test the device browser if it is able to hit urls or you can test the Tizen store app or any app that uses internet.

 

Additionally, you can add the 'internet' privilege.

 

 

Garima .

Hi Armaan,I am testing my application on Gear S3 frontier. Device has stable internet connection via wifi. I added following privileges and features in manifest file:

But result_callback() result is still PUSH_SERVICE_RESULT_TIMEOUT.

Armaan-Ul- Islam

As the Push Guide Says:

Internet access

"To connect to the Tizen push server and receive notifications from it, the target device or emulator must be able to contact any IP address with the port 5223. If you are in an enterprise network, ensure that the proxy setting in your local network allows outgoing traffic destined for this port number."

 

https://developer.tizen.org/development/guides/native-application/messaging/push