Skip to content

Commit

Permalink
feat: add support for fcm v1 credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
owenpearson committed Dec 12, 2023
1 parent 67578f1 commit 8e070c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ type NewApp struct {
TLSOnly bool `json:"tlsOnly"`
// The Firebase Cloud Messaging key.
FcmKey string `json:"fcmKey"`
// The Firebase Service Account key. To use the service account key you must also provide a projectId.
FcmServiceAccount string `json:"fcmServiceAccount"`
// The Firebase Project ID. To authenticate with firebase you must also provide a service account key.
FcmProjectId string `json:"fcmProjectId"`
// The Apple Push Notification service certificate.
// This field can only be used to set a new value,
// it will not be populated by queries.
Expand Down Expand Up @@ -40,6 +44,10 @@ type App struct {
TLSOnly bool `json:"tlsOnly"`
// The Firebase Cloud Messaging key.
FcmKey string `json:"fcmKey"`
// The Firebase Service Account key. To use the service account key you must also provide a projectId.
FcmServiceAccount string `json:"fcmServiceAccount"`
// The Firebase Project ID. To authenticate with firebase you must also provide a service account key.
FcmProjectId string `json:"fcmProjectId"`
// The Apple Push Notification service certificate.
// This field can only be used to set a new value,
// it will not be populated by queries.
Expand Down
2 changes: 2 additions & 0 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func newTestApp(t *testing.T, client *Client) App {
Status: "enabled",
//TLSOnly: false,
FcmKey: "",
FcmServiceAccount: "",
FcmProjectId: "",
ApnsCertificate: "",
ApnsPrivateKey: "",
ApnsUseSandboxEndpoint: false,
Expand Down

0 comments on commit 8e070c7

Please sign in to comment.