e PUSH_HTTPS_KEYFILE="/opt/app/priv/ssl/rest_key.pem" \ e PUSH_HTTPS_CERTFILE="/opt/app/priv/ssl/rest_cert.pem" \ Go to your project -> Project Settings -> Service accounts -> Generate new private keyĪssuming that you have the priv directory with all ceriticates and fcm token in current directory, then you may start MongoosePush with the following command: docker run -v `pwd`/priv:/opt/app/priv \ To see how to obtain token and key_id read:įCM JSON file can be generated by Firebase console ( ). If you want to use APNS token authentication you need to provide token and set key_id and team_id environmental variables. token.json - FCM service account JSON file.dev_key.pem - Development APNS app certificate's private key (has to be unencrypted).dev_cert.pem - Development APNS app certificate.prod_key.pem - Production APNS app certificate's private key (has to be unencrypted).prod_cert.pem - Production APNS app certificate.rest_key.pem - private key for the HTTP endpoint certificate (has to be unencrypted).rest_cert.pem - The HTTP endpoint certificate.Depending on your usecase, you can have some or all of them in a standalone MongoosePush instance or using a docker container.įor the full configuration you need to set the following directory structure up: Configuration requires either an FCM token, APNS certificates or an APNS token. Notifications to FCM (Firebase Cloud Messaging) and/orĪPNS (Apple Push Notification Service) via their HTTP/2 API. MongoosePush is a simple, RESTful service written in Elixir, providing ability to send push
0 Comments
Leave a Reply. |