-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Notifications #19
Comments
You are getting json data from remote getting so you have to extract value of void getFCMServerKey() async {
final RemoteConfig remoteConfig = await RemoteConfig.instance;
await remoteConfig.fetch(expiration: const Duration(hours: 5));
await remoteConfig.activateFetched();
var data = remoteConfig.getString('FcmServerKey');
if (data != null) {
serverToken = jsonDecode(data)["key"];
}
} |
yes, I configure it like my photos and I can't recibe notifications, I have to do anything else? |
First of all please check notification by sending from the Postman. {
"notification": {
"body": "this is a body",
"title": "this is a title"
},
"priority": "high",
"data": {
"click_action": "FLUTTER_NOTIFICATION_CLICK",
"id": "1",
"status": "done",
"title":"title",
"body":"body",
"tweetId":"wert"
},
"to": "ADD DEVICE FCM TOKEN HERE"
} Postman notification configuration |
{ |
Probably you are using incorrect server key. Check your server key first. |
i cheked it , and y try after generate another one, config in my photos is ok? |
Your config seems ok in the photo. Please check you are using the correct FCM server key. |
Yes i use my server key, only have 1!!
Enviado desde mi iPhone
… El 24 abr 2020, a las 20:26, Sonu Sharma ***@***.***> escribió:
Your config seems ok in the photo. Please check you are using the correct FCM server key.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I haven't any idea what's wrong in your configuration. If your notification is not working with postman then it is obvious you have either missing something or not using correct values. |
I can get notifications...
my config:
in app:
remote config:
remote config json:
if I send notification since firebase is ok, but when I send a chat message not send notification.
thank you¡¡¡
The text was updated successfully, but these errors were encountered: