Configuring the EMS Server to Enable Push Notifications

From RAD Studio
Jump to: navigation, search

Go Up to EMS Push Notifications


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

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

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

Google Cloud Messaging (GCM) Settings

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

[Server.Push.GCM]
;# This section is for Google Cloud Messaging (GCM) settings.
;# These settings are needed to send push notifications to an Android device
ApiKey=AIzaSy8ErRetMFL3gMm-c4McopUXyU51e6p51i0s

Apple Push Notification (APN) Settings

You need to modify the default settings of the Apple Push Notification section to enable the 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