Configuring the RAD Server Engine to Enable Push Notifications

From RAD Studio
Jump to: navigation, search

Go Up to RAD Server Push Notifications


The RAD Server Engine (EMS Server) is configured with default parameters, after configuring your RAD Server environment. You can change your RAD Server Engine configuration by editing the EMSServer.ini file.

You need to change the default configuration of the RAD Server Engine, to enable your RAD Server Engine to send RAD Server push notification messages to your registered devices.

Note: You also need to install OpenSSL libraries in the system where the RAD Server Engine (EMS Server) runs. See RAD Server Engine requirements for more information.

FireBase Cloud Messaging (FCM) Settings

You need to modify the default settings of the FireBase Messaging section to enable the RAD Server Engine (EMS Server) to push notifications messages to the FireBse Cloud Messaging service or the Google Cloud Messaging service. In the EMSServer.ini file, go to the [Server.Push.GCM] section:

[Server.Push.GCM]
;# This section is for FireBase and Google Cloud Messaging (FCM/GCM) settings.
;# These settings are needed to send push notifications to an Android device
ApiKey=AIzaSy8ErRetMFL3gMm-c4McopUXyU51e6p51i0s
;# Set your server key
ApiURL=
;# Set send message to REST API URL
;# See the default value here.

Apple Push Notification (APN) Settings

You need to modify the default settings of the Apple Push Notification section to enable the RAD Server Engine (EMS Server) to send push notifications messages to the Apple Push Notification Service. In the EMSServer.ini file, go to the [Server.Push.APNS] section:

  • CertificateFileName. Path to the .p12 certificate downloaded to your system.
  • CertificateFilePassword. .p12 certificate password. If no password is needed, leave it blank.
  • ProductionEnvironment. If the .p12 certificate is created for production, the corresponding value is 1. If it is created for development, set the value to 0.
[Server.Push.APNS]
;# This section is for Apple Push Notification Service (APNS).
;# These settings are needed to send push notifications to an IOS device
CertificateFileName=C:\Users\Public\Documents\Embarcadero\EMS\PushNotificationTest.p12
;# Name of .p12 or .pem file
CertificateFilePassword=
;# Password of certificate file.  Leave blank if file does not have a password.
ProductionEnvironment=0
;# Set ProductionEnvironment=1 when the certificate has been created for production.
;# Set ProductionEnvironment=0 when the certificate has been created for development.
;# Default value is 0 (development).

See Also