Comments (7)
@amercobra if FCM serverId and senderId is configured correctly, I don't see any issues in your C# code. However of course there may be something on the receiver (Android?) side. I could take a look at your Android manifest and other code that receives notification.
from net-core-push-notifications.
Is there any future information about this issue?
seems like I have the same issue. I don't know whats wrong.
btw, is there any respond if that code above successfuly or fail? Since i didnt get any response even success or fail
from net-core-push-notifications.
@arhen @amercobra you can actually examine the response from fcm, e.g.:
var response = await fcm.SendAsync(...);
Check the response object and see if it can help you troubleshoot your issue. My first guess is: you guys didn't set it up right. Some keys are wrong or something else. Hard to guess, as there are many moving pieces.
from net-core-push-notifications.
@arhen @amercobra you can actually examine the response from fcm, e.g.:
var response = await fcm.SendAsync(...);
Check the response object and see if it can help you troubleshoot your issue. My first guess is: you guys didn't set it up right. Some keys are wrong or something else. Hard to guess, as there are many moving pieces.
yeah, I've figure out later after look deep onto the source code. I think it's docless so I can't understand the response template (for someone that less exp on FCM).
Sorry I didn't reply it ASAP on this issue
from net-core-push-notifications.
@arhen @amercobra you can actually examine the response from fcm, e.g.:
var response = await fcm.SendAsync(...);
Check the response object and see if it can help you troubleshoot your issue. My first guess is: you guys didn't set it up right. Some keys are wrong or something else. Hard to guess, as there are many moving pieces.
yeah, I've figure out later after look deep onto the source code. I think it's docless so I can't understand the response template (for someone that less exp on FCM).
Sorry I didn't reply it ASAP on this issue
Hi @arhen ,
So were you able to send message successfully? If so, would you please share the exact code?
Thank you all.
from net-core-push-notifications.
Yes I can. And I've notice that I must add NotificationPayload class to the template then I got a new notif appear on my device. I'm AFK right now, ill reply my template when I'm at home.
from net-core-push-notifications.
@arhen @amercobra
I can confirm, the library works great for me. So I suspect, there is something wrong in your setup. Things to check:
- Is FCM sender id and server key correct? Go here https://console.firebase.google.com/project/ find your project, then click on the gear icon (left right corner), go to Project Settings -> Cloud Messaging tab.
- Is the payload correct? Check the README.md documentation and https://firebase.google.com/docs/cloud-messaging/concept-options#notifications
- Make sure you use FCM and not GCM in your Android app, also make sure everything is properly configured in manifest and in code.
- Android app: read logcat, it will help you troubleshoot the issue. Maybe notification gets received but no alert pops-up on the screen.
- This library is only good for .NET Core 3.1 and beyond. If you use .NET Core 2.2 or .NET Framework 4.7 - you might run into issues.
from net-core-push-notifications.
Related Issues (20)
- Push icon HOT 3
- Additional functionality HOT 1
- Non-hardcoded FCM Url HOT 3
- How can distinguish between fem tokens
- Distinguish between fcm tokens HOT 1
- Only HTTP/1.0 and HTTP/1.1 version requests are currently supported HOT 1
- Version 3.1.1 & 3.1.0 - ApnSender Fails With Serialization Error (.Net Core 6.0.7) HOT 3
- ApnsResponse from ApnSender.Send has IsSuccess = true, but I never receive notification? HOT 1
- Cancel a notification HOT 1
- Support for System.Text.JSON HOT 5
- Migrate from legacy HTTP to HTTP v1 HOT 1
- ApnSender.Send throws an Exception when Bad DeviceId is provided. HOT 4
- Firebase Error Throws Exception HOT 2
- Usage clarification HOT 2
- For Anyone Who Has Issues with Azure Service & Firebase (Cryptography) - See this... HOT 1
- message.data serialization convention HOT 3
- Exception when sending notifications to iOS devices HOT 1
- work with apple wallet passbook HOT 1
- FirebaseSettings are a record thus not allowing binding to appsettings.json HOT 1
- Firebase CryptographicException when deployed to production server (NOT Azure)
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 net-core-push-notifications.