Languages

Menu
Sites
Language
Push Notifications on Samsung Gear S3 with Tizen 2.3.2.1

I am working on Push Notifications for Samsung Gear S3 using Tizen Wearable Web Application. My application got Approval from the Tizen team to use the Push Notifactions. I followed the guidlines of Push Notifications and integrated the Push Notifications code in my application.

 I am able to receive RegId using 

                            tizen.push.registerService(service, registerSuccessCallback,errorCallback);

Now when i am connecting to the Push Service using below method,

                            tizen.push.connectService(notificationCallback, errorCallback);

I am not receiving any notifications. I tried on both emulator and real device (Samsung Gear S3 Class 2.3.2.1).

When i sent the push notifcation from the server , i got the success response from the push server 

Request : 

{

    "regID": "XXXXXXXX",

    "requestID": "273f0307",

    "sender": "Madhu", 

    "message": "badgeOption=INCREASE&badgeNumber=1&action=ALERT&alertMessage=Hi I am a Test Notification"

}

Response :

{"results": [{"regID": "XXXXXXXXX","requestID": "273f0307","statusCode": 1000,"statusMsg": "Success"}]

}

Eventhough i am receiving success response from the Push Server its not delivering the Push Notications to the device/emulator.

Please provide the solution how can i get the push notifications deliver to my application.

 

 

Responses

2 Replies
Younho Park

Hi,

The message format seems to be correct. Can you tell me about your test environment? (Any firewall? Using Wi-Fi? Enterprise network?)

Armaan-Ul- Islam

Everything seems good to me from your explanation.

 

# Please check your device/emulator has stable network connection. Without connection notification won't be served.

 

# The Tizen push server identifies your applications using the package ID, Make sure the app installed on device have the same package ID used for registration.

 

# As the action is set as: action=ALERT,

   I assume you checked the Receiving Push Notifications section. At arrival of a push notification:

-When the application is running, push notification callback will be called. You have to read and process the received notification yourself in this callback.

-When the app is not running scenario is explained here: Retrieving Missed Push Messages.