As of 4D v18 R4, you can send notifications to your application users. Now with 4D v18 R6, you can start data synchronization with a push notification.
This could be useful, for example, in the case of delivery tracking applications. First, the delivery information is updated in the database, then a notification is sent to the customer. The notification contains a request to synchronize the data, so when the customer consults the record on their smartphone, the data is up to date.
Notification with the opening of a record
By default, a notification opening a record automatically asks for a synchronization. So you don’t have to worry about whether the user’s data is recent or not.
If in some cases you don’t want to force the synchronization, it’s possible. For more information, refer to the documentation.
A simple notification
You can also request a synchronization for a simple notification without opening a specific record (e.g., when some new entries have been added). So you can inform your user and update their data without any actions on their part.
$notification:=New object
$notification.title:="This is title"
$notification.body:="Here is the content of this notification"
$notification.userInfo:=New object("dataSynchro"; True)
New to 4D for iOS?
If you’re new to the 4D for iOS, make sure to check out this 2-minute video for a quick overview.
If you have any questions, please join us on the 4D forum, we’ll be glad to help!