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.
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?
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.
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.