Official Content

Specifies which procedure will be executed to register the device information needed to send messages (Push Notifications) to the device.

Scope

Objects: Menu, Panel, Work With (Only Main Objects)
Generators: Android, Apple

Description

The Procedure object set in this property must be generated as a web service. It will be executed from the Smart Device under specific conditions, which vary depending on the platform and settings.

For Android:

  • When the Device Registration Mode is set to Automatic, the application will request permission to send push notifications on startup.
  • If the Device Registration Mode is Manual, the permission will be requested at the moment defined in the application logic (e.g., after user login).

For iOS:

  • The request for permission to send push notifications is shown after the user successfully logs in if the main object requires authentication. This ensures the application is usable before notifications are enabled.
  • To request permission at the application startup, similar to Android's behavior when set to Automatic, you can set the Device Registration Mode to Manual and prompt for permission in the login panel itself.

GeneXus, by default, creates a procedure called NotificationsRegistrationHandler in the GeneXus/SD/Notifications directory under the Root Module in your Knowledge Base that has:

  • Main program property = True
  • Connectivity Support property = Online

You can create another one with your own business logic for registering the devices in your system.

Runtime/Design time

This property applies only at design time.

How to apply changes

To apply the corresponding changes when the property value is configured, Build the Main Object.

See Also

HowTo: Use a Device's Registration Service for Push Notifications
Push Notifications in Native Mobile Applications

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant