on 2015 Jun 02 7:33 AM
Hi Everyone,
I followed the below link to register the APNS token to SMP server.But when im testing the application with rest client im not get the notifications.
When i test on rest client ,im getting the respose as 201 created.But im not getting the notification.
Please help me where im going wrong.
Thanks,
Praveen.
Request clarification before answering.
Hi Praveen,
One more check.
Once you have onboarded your device in the server, you can use restclient to check whether the ApnsDeviceToken is registered with server.
URL : http://<server>:<port>/odata/applications/latest/<appid>/Connections('<x-smp-appcid>')
Headers :
Method : GET
X-SMP-APPCID : <value>
You will be able to see the ApnsDeviceToken in the response.
Also you should pass the username and password of your Notification Security Profile while sending the notification from restclient.
Regards,
Dhani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
According to Apple document the ports 2195 and 2196 should be opened and port 5223 should be opened if you are using Wifi. You can refer to the troubleshooting guide Technical Note TN2265: Troubleshooting Push Notifications to confirm whether you have done everything properly in the server end.
Meanwhile, can you try sending notification using the url
http://<server:port>/restnotification/application/<appid>/user/<username>
Header:
Content-Type : application/json
Basic Authentication: Notification security profile username & password
Method : Post
Your response should contain the registration id of the device to which the push notification was sent.
Regards,
Dhani
Hi Dhani,
I tried to check the response for the above url,with payload
im not getting the registration id of the device .
But when i run the url with appid and post the data then im getting the registered id for that application id.The below is the screen shot with only application id.
Thanks,
Praveen.
Hi Praveen,
Can you change the Log Status from ERROR to INFO and try?
Also, from restclient make a try with URL in the following format:
http[s]://<host:port>/Notification/<application connection ID>?alert=<alert>&badge=<badge>&sound=<sound>&data=<data in text format>
(In this case, no need to pass anything in the request body)
More ref: SAP HANA Cloud Platform Mobile Services
Regards,
Dhani
Hi Dhani,
I changed the log status from ERROR to INFO ,still i can't see any log for my application.
even i tried with the belpow link the restclient ,and getting the response is 0.
http[s]://<host:port>/Notification/<application connection ID>?alert=<alert>&badge=<badge>&sound=<sound>&data=<data in text format>
Thanks,
Praveen.
User | Count |
---|---|
76 | |
22 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.