Push notification with data synchronisation

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! 

 

Vanessa Talbot
• Product Owner •Vanessa Talbot joined 4D Program team in June, 2014. As a Product Owner, she is in charge of writing the user stories then translating it to functional specifications. Her role is also to make sure that the feature implementation delivered is meeting the customer need.Since her arrival, she has worked to define key features in 4D. She has worked on most of preemptive multi-threading new features and also on a very complex subject: the new architecture for engined application. Vanessa has a degree from Telecom Saint-Etienne. She began her career at the Criminal Research Institute as a developer for the audiovisual department. She has also worked in media and medical fields as expert in technical support, production as well as documenting new features.