Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Migrate android push notification from gcm to fcm
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Chan authored Jan 21, 2019
2 parents 9d4b6f5 + 54f9c38 commit 5d8235a
Show file tree
Hide file tree
Showing 11 changed files with 785 additions and 235 deletions.
30 changes: 25 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,31 @@ CUSTOM_TOKEN_SECRET="ssosecret"
# APNS_TOKEN_KEY_PATH=
###

###
# Android Push notification
# enable fcm for android push notification
# FCM_ENABLE=true
# support `server_key` or `service_account` for FCM type
# server_key - use server key with legacy FCM server API https://firebase.google.com/docs/cloud-messaging/http-server-ref
# service_account - use service_account with Firebase Cloud Messaging Service https://firebase.google.com/docs/cloud-messaging/admin/send-messages
# FCM_TYPE=service_account

# for FCM_TYPE=server_key
# fcm server key
# FCM_APIKEY=

# for FCM_TYPE=service_account
# google service account json
# FCM_SERVICE_ACCOUNT_KEY=
# google service account json file path
# FCM_SERVICE_ACCOUNT_KEY_PATH=
###

# enable baidu push
# BAIDU_ENABLE=false
# BAIDU_API_KEY=
# BAIDU_SECRET_KEY=

###
# Skygear supports using Amazon S3 as the default storage backend. Set the AWS
# access key, secret key, region and bucket by the following environment variables.
Expand Down Expand Up @@ -89,11 +114,6 @@ CUSTOM_TOKEN_SECRET="ssosecret"
# google cloud messaging api key
# GCM_APIKEY=

# enable baidu push
# BAIDU_ENABLE=false
# BAIDU_API_KEY=
# BAIDU_SECRET_KEY=

# host to listen on. defaults to empty string
# HOST=localhost
# defaults to 3000
Expand Down
256 changes: 221 additions & 35 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5d8235a

Please sign in to comment.