-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HELP #157
Comments
I will add option to let the user to provide the custom JSON payload rather than strict only to title, icon, body and click action. |
oh and also, i found bug, when send FCM 3 times it will eror exception 29, for (Firebase Cloud Messaging) with delay 1000ms |
No bugs about this exception, you need to post your code here. |
this is not my code, this is example code from your library loop 3times every 1second.. after 3 times i got exception /*
*/ //This example shows how to send Firebase Cloud Messaging. //FirebaseESP8266.h must be included before ESP8266WiFi.h #define WIFI_SSID "YOUR_WIFI_AP" #define FIREBASE_FCM_SERVER_KEY "YOUR_FIREBASE_PROJECT_CLOUD_MESSAGING_SERVER_KEY" FirebaseData firebaseData1; unsigned long lastTime = 0; int count = 0; void sendMessage(); void setup()
} void loop()
} void sendMessage()
} |
Now the issue was fixed in the latest update (v 3.0.1) Now you can use firebaseData1.fcm.addCustomNotifyMessage("title", "Title");
firebaseData1.fcm.addCustomNotifyMessage("body", "xxx");
firebaseData1.fcm.addCustomNotifyMessage("click_action", "FLUTTER_NOTIFICATION_CLICK");
firebaseData1.fcm.addCustomNotifyMessage("sound", "notification.mp3");
firebaseData1.fcm.addCustomNotifyMessage("android_channel_id", "my-channel_id");
|
this is my firebase cloud messaging payload
how do i customize notification <android_channel_id> in firebaseData1.fcm.setNotifyMessage( ) ?
The text was updated successfully, but these errors were encountered: