Is there a way that my app do something if a string was changed on parse.com. Like if I started the app and be on the main view the app shows a label which says that there is new information. Which actually can looked up in another view. Is there a way to get a message on a view, where the object of parse is not loaded. Any tips or suggestions would be helpful.
Sorry but it seems that there is nothing at the internet about this topic. I thought I could make something with “if” but I didnt figured out how to do this.
Is there a way that my app do something if a string was changed
Share
Parse.com doesn’t support notifications to applications when data changes in their server. You will need to query the data on parse, compare with your local version of the data, and then show the label if the data is different.
You could probably abuse the Push Notifications service they offer to sort of hack this functionality in. When an application or user changes the data in Parse, as part of the save action in the client application could be to fire a “data changed” push notification. The iPhone app would then receive this notification and then be able to show the label. However, you will still have to support the query mechanism anyway as the notification method won’t work correctly for users who don’t authorise push notifications, and users who are not running the app at the time of receiving the notifications.