question

pranit avatar image
pranit asked pranit commented

Sandbox Environment url for Sending PUSH notification is working in both Production and Development environment of Clover ?

I am using the sandbox url " https://apisandbox.dev.clover.com/v3/apps/aId/merc... \" for sending the PUSH Notifications to my App which are available on Sandbox development Environment and Also on Clover Production Environment. So, I am able to receive the notifications for the both Apps. So, I have one confusion here. is it the same API is used for both Sandbox and Production environment to send Notifications in clover ? or some another separate API is available to send PUSH Notifications to Production Environment APP for e.g(" https://api.clover.com/v3/apps/aId/merchants/mId/notifications \").

Please reply if anyone has some suggestion on it.
Merchant
10 |2000

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

Bryanne Vega avatar image
Bryanne Vega answered pranit commented
*edit*

You've self answered your question, there are 2 endpoints (1 for production & 1 for sandbox).

You can't sent from one environment to another over a single URL (by default), you can however, create a system that does this for you, if you wished.
1 comment
10 |2000

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

pranit avatar image pranit commented ·
Ok, Thanks for the updates
0 Likes 0 ·
pranit avatar image
pranit answered Bryanne Vega commented
Thanks for the reply, but my question is only sandbox url is working for both Production and development environment in PUSH NOTIFICATION scenario. so, should i use the same api for both production and development environemnt or should i use different for Production . but if i used
  1. https://api.clover.com then i don't get the notification.
1 comment
10 |2000

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

Bryanne Vega avatar image Bryanne Vega commented ·

Remember: Prod & Dev enviorments have different Notification IDs & Endpoints.

You'll need to post correctly the path (api.clover.com/notifications/ etc) with the correct app ID & notification id as well.

If the notification is too difficult, I would recommend Pushy.me (it's only 0.05 cents per active device & the notifications are guaranteed to be delivered (unless ofcourse the client remains offline) unlike the Clover's notifications which aren't guaranteed to be delievered.

0 Likes 0 ·

Welcome to the
Clover Developer Community