We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a75b859 commit f63ab44Copy full SHA for f63ab44
firebase_test.go
@@ -73,6 +73,10 @@ func TestClientOptions(t *testing.T) {
73
defer ts.Close()
74
75
b, err := mockServiceAcct(ts.URL)
76
+ if err != nil {
77
+ t.Fatal(err)
78
+ }
79
+
80
config, err := google.JWTConfigFromJSON(b)
81
if err != nil {
82
t.Fatal(err)
snippets/messaging.go
@@ -30,6 +30,9 @@ func sendToToken(app *firebase.App) {
30
// Obtain a messaging.Client from the App.
31
ctx := context.Background()
32
client, err := app.Messaging(ctx)
33
34
+ log.Fatalf("error getting Messaging client: %v\n", err)
35
36
37
// This registration token comes from the client FCM SDKs.
38
registrationToken := "YOUR_REGISTRATION_TOKEN"
0 commit comments