Comments (9)
You are getting json data from remote getting so you have to extract value of key
from data.
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"];
}
}
from flutter_twitter_clone.
yes, I configure it like my photos and I can't recibe notifications, I have to do anything else?
thank you a lot
from flutter_twitter_clone.
First of all please check notification by sending from the Postman.
You can use below demo json for notification.
{
"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
from flutter_twitter_clone.
{
"multicast_id": 4493036613982111398,
"success": 0,
"failure": 1,
"canonical_ids": 0,
"results": [
{
"error": "MismatchSenderId"
}
]
}
from flutter_twitter_clone.
Probably you are using incorrect server key. Check your server key first.
from flutter_twitter_clone.
i cheked it , and y try after generate another one, config in my photos is ok?
from flutter_twitter_clone.
Your config seems ok in the photo. Please check you are using the correct FCM server key.
from flutter_twitter_clone.
from flutter_twitter_clone.
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.
from flutter_twitter_clone.
Related Issues (20)
- ios pod install error HOT 5
- not opening HOT 3
- App not launching ! HOT 1
- Failed to build app HOT 3
- great work 👏, but how to get prefetched tweets , do i need to add the data or do we have any source to get that, currently app is in Loading state after adding my firebase to this project HOT 1
- Adding multiple languages HOT 2
- failed to build app HOT 3
- Account deletion ? HOT 3
- I can't build HOT 2
- Video Upload HOT 8
- FirebaseAuthException: An internal error has occurred. [ CONFIGURATION_NOT_FOUND ] HOT 2
- I cant build due to Google Services HOT 3
- Remote config issue HOT 2
- FCM API is no longer supported HOT 1
- feed imageview not loading image HOT 4
- App not loading HOT 2
- supportedBuild in Remote Config doesn't work
- update to twitter x theme
- NULL CHECKER USED ON A NULL VALUE
- Moments feature is disabled in sidebar menu and in settings also many features are disabled HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_twitter_clone.