question

lior avatar image
lior asked josh answered

Push notifications tuturial not work

Hello, I am following this tuturial: https://github.com/clover/android-exa... I uploaded the app to the clover device, to the app market and when I am trying to send the post with the https://www.clover.com/apiexplorer POST /v2/merchant/{mId}/apps/{appId}/notify { "notification": { "appEvent": "testnotification", "payload": "Up to 4k of data" } }

I got one of: Bad json unauthorized Logged out/ not logged in. Thank you!

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

josh avatar image
josh answered

This endpoint should work. You should use your app secret as the access_token. You can also only post messages to merchant Ids that have installed your app. If you think you are doing both of those things correctly you can send me the app id and the merchant id you are trying to use (my email is my name @clover.com).

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community