Skip to content

Environment settings🔗

For server Push notifications to work, you need to add the Firebase or APNS (Apple Push Notifications) credentials to the settings section of your application on the MRGS website.

Android🔗

Android uses the Firebase service to deliver push notifications to the client. Messages are sent using a server token, which must be obtained on the Firebase website.

  • Go to the Firebase website.
  • Select your application, or create a new one if it's not there.
  • Go to the application settings (Project settings section).

firebase_app_settings

  • Open the Cloud Messaging tab and copy the Server Key token to the clipboard.

firebase_cloud_messaging

  • Go to the MRGS website to the settings section of your application.

mrgs_app_settings

  • Paste the Firebase Server Key token from the clipboard into the "Key for sending PUSH notifications" field.
  • Click "Save".

iOS🔗

iOS uses the APNS service to deliver Push notifications to the client. The messages are sent using the certificate that must be obtained on the website for Apple developers.

To create a certificate, you must create a request file (CSR), and then use it to download the certificate itself.

  • Open the Keychain app on MacOS X.
  • Select the following item on the menu: Keychain Access -> Certificate Assistant -> Request a certificate from certificate authority.

request_from_ca

  • Fill in the User Email Address and Common Name fields, select Save to disk, and then Continue. Leave CA Email Address field empty, as it is optional.

request_cert_info

  • Name the CSR file and choose where to save it. Click Save.

After creating the CSR file, you need to request the certificate itself:

  • Go to the Apple Developer website.
  • Go to the "Certificates, Identifiers & Profiles" section.
  • Select "Identifiers" and then click on the name of your application.
  • Scroll down to the marked Push Notifications option, and then select Configure to create a certificate.

edit_app_push

  • In the next window click the Create Certificate button in the Development SSL Certificate section.

create_cert

  • In the next window click Choose File, navigate to the folder which the CSR file is saved in, and double-click on the certificate name to download it. Then select Continue.
  • After the certificate is created on the portal, click the Download button.

save_cert

  • Open the Finder app and go to the directory where you downloaded the certificate. Double click on it.
  • Certificate will be added to Keychain.

cert_keychain

  • In the Keychain Access app right-click on the Push notifications certificate created in the Certificates category. Select Export, specify file name, select the P12 format and click Save.

cert_export

This way we created the Development Push certificate. We need it to send Push notifications to the development build of the application. Now repeat all the steps to create the Production certificate, which will enable sending Push notifications to the AppStore build of the application.

Received p12 certificates must be uploaded to the MRGS website.

  • Go to the MRGS website to the settings section of your application.

mrgs_app_settings

  • Click on the Developer Push certificate button, navigate to the created p12 certificate, select it and specify the password for it.
  • Click on the Production Push certificate button, navigate to the created p12 certificate, select it and specify the password for it.
  • Click Save.

Huawei🔗

Huawei uses its own service to deliver push notifications to the client. Messages are sent using a special OAuth 2.0 key, which must be obtained in the Huawei Console.

  • Go to the Huawei Console website.
  • Go to the Credentials section, select your project from the drop-down list, and copy the Secret from OAuth 2.0 client IDs

notifications_huawei_settings

  • Go to the MRGS website to the settings section of your application.

mrgs_app_settings

  • Paste your Secret from the clipboard into the "Key for sending PUSH notifications" field.

mrgs_notifications_huawei_settings

  • Click "Save".

Last update: 2025-01-21
Created: 2020-01-20