cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Invalid Notification Target Id

rakshit_doshi
Active Contributor
0 Likes
575

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.

Any suggestions on this

Thanks,

Rakshit Doshi

Accepted Solutions (0)

Answers (3)

Answers (3)

rakshit_doshi
Active Contributor
0 Likes

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.

Former Member
0 Likes

> 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!

rakshit_doshi
Active Contributor
0 Likes

Dear Ricardo,

Can you send me ur request payload that you send.

Thanks,

Rakshit Doshi

midhun_vp
Active Contributor
0 Likes

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

Jitendra_Kansal78
Product and Topic Expert
Product and Topic Expert
0 Likes

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