Skip to content
Snippets Groups Projects

Update firebase error handling for more info & better handling

Files

+ 1
1
@@ -77,7 +77,7 @@ func sendNotification(app FBSender, token string, data string) (string, error) {
@@ -77,7 +77,7 @@ func sendNotification(app FBSender, token string, data string) (string, error) {
ttl := 7 * 24 * time.Hour
ttl := 7 * 24 * time.Hour
message := &messaging.Message{
message := &messaging.Message{
Data: map[string]string{
Data: map[string]string{
"notificationsTag": data,
"notificationsTag": data, // TODO: swap to notificationsTag constant from notifications package (move to avoid circular dep)
},
},
Android: &messaging.AndroidConfig{
Android: &messaging.AndroidConfig{
Priority: "high",
Priority: "high",
Loading