on ‎2015 Aug 24 5:29 AM
Dear All,
We are trying to push notifications for Android and we configured the application on SMP for Push notification with the Project number as well as the API Key (Browser Key).
When i try to send a notification from the rest client it says Invalid Notification Target Id. I am not sure why are we get this error.
Has anyone been able to successfully send notification from SMP to Android Devices.
We are running on SMP 3.0 SP7.
Thanks,
Rakshit Doshi
Request clarification before answering.
Hi All,
I fixed that error . It was the type of device which was registered hence it was giving invalid target type.
But i m facing a new issue. I am sending the notification. it says notification is sent for processing but i do not see the notification coming on Android device. Any suggestions for this.
We enabled communications to any port and any ip from the server so i do not think it is something related to network or firewall.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> I fixed that error . It was the type of device which was registered hence it was giving invalid target type.
Could you please elaborate how you fixed that? I'm having the same issue and I've tried a lot of different solutions and I'm still getting that same error over and over again.
Thanks a lot in advance!
Hi Rakshit,
Is it a native app or a hybrid app?
I haven't tested it recently in SMP 3. But tested it in HCPms with Kapsel: http://enterprisemobilityblog.com/android-push-notifications-with-hcpms/
Regards, Midhun
SAP Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you confirm if user (that you have passed in AUTHORIZATION header) has role as 'Notification User' ?
In general, 404 message comes when app didnt successfully register for notifications. Can you cross verify it?
URI: http://smpserverhostname:8080/odata/applications/latest/com.test.dept/Connections('.....')
Method: GET
Header: X-SMP-APPCID and its value
Once everything is checked, try with a POST request
http://server:port/restnotification/application/com.test.dept/
payload:
{"alert":"New Vacation Approval Request", "data":"For (i826565) request (7)" }
Regards,
JK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.