Push Notification After New Entry is Created

Hello,

I have connected my iOS app to the Backendless service and I can send push notifications from the console. However, I cannot make automatic push notifications work. My app logic very simple - all data is received from one data table in the Backendless server; there are no registered users; users can only read the data; all data is managed by an owner on the Backendless server. How do I make automatic push notifications work after new entry is created in the database by the owner? I tried following this but to no success.

Thanks.

Hi Tomas,

Welcome to our community!

The support topic you referenced discusses version 3 of Backendless, however, in the latest version the approach is very similar.

Have you added an event handler in your app? Do you use JS, Java or Codeless? Please describe what you have already done and which part doesn’t work.

Regards,
Mark

Thanks for your reply.

I deployed a simple Codeless logic to test out the functionality - when an element is updated in the Event table, a generic push notification should be sent to anyone subscribed to the default channel.

After deploying this, I updated some of the entries in the Event table but no notifications were pushed to the device (as mentioned, device receives notifications when using the Console). What am I missing here? :frowning:

Thanks!

Hi Tomas,

Could you please let me know your application ID so I can look around and see what you’re missing?

Regards,
Mark

Yes, it is E1B745BA-7FD2-5EB4-FFCD-002D31F39D00. Thanks!

Hi Tomas,

Could you please check if you received any notifications? I ran a few tests in your app. Please let me know if you got any notifications and what the message said.

Regards,
Mark

Thank you very much for your help, Mark. I have indeed receives two notifications. The first one said “Sending from Template” and the other one “Message from event handler”. From this I can gather that the functionality works fine (never doubted that!). However, I still do not receive notifications after I manualy update the values in the table, which should send the notification, on the backendless website.

When you manually update an object in Backendless Console, it does not result in an API event (because it is not an API call). The API event for updating an object is triggered only when you use the API. You can try modifying it through the REST Console which is a tab on the Data screen.