4D for iOS: Push Notifications

4D v18 R4 delivers a very exciting feature … Push notifications. These are messages sent directly to the user’s mobile device from your app. Push notifications provide users with relevant information to encourage them to engage with an app. As of this feature release, 4D for iOS not only allows doing so but also allows you to do it with ease!

For email authentication, 4D for iOS also makes your life easier.

Simple steps to send a push notification

  • Download the push notification key from your Apple developer account.
  • Upload the key from the project editor in the Publishing section.
  • Define a push notification message and title.
  • 4D for iOS will handle the sending process for you.

 

Example:

$pushNotification:=MobileAppServer.PushNotification.new()
$notification:=New object
$notification.title:="4D for iOS"
$notification.body:="A new task is available"

$response:=$pushNotification.send($notification;"test@4d.com")

Note: If you’re interested in knowing the technical details behind the feature, refer to the documentation.

Voilà!

When push notifications are activated for an installed app on your iPhone, you also get the notifications on your Apple Watch!

The complete documentation is available to help you manage the process and design more engaging apps!

David Azancot
• 4D for iOS Product Owner •David Azancot joined the 4D Product team as a Product Owner in 2017. He's in charge of writing the user stories and translating them into functional specifications. His role also includes making sure that feature implementations meet customers' needs.David graduated with an MBA in Marketing, Internet and Mobility from the Leonard De Vinci Institute and began his career in 2011 with a mobile start-up company, later acquired by Madvertise (a mobile marketing group). Passionate about mobile interfaces, he was the natural choice to develop interactive mobile ad formats for the group in 2015. In parallel, David has been developing his own iOS and Android applications since 2012.