I'm struggling to find a way to see the logs of all push notifications requests sent to my Firebase project.
Since I'm using SNS, and it uses Cloud Messaging API (Legacy) to send these messages, I need to find out why I'm receiving 200 responses but the messages are never delivered.To see the Payload coming from SNS would be really helpful.
Any suggestions?
Thank you!!
Related
We are using Firebase API (CURL to https://fcm.googleapis.com/fcm/send) to send push notifications to multiple devices by topic but when we send them these are not reflected on the console. We can only see notifications sent by the console.
Thanks in advance!
firebaser here
The charts in the Firebase Notifications console only reflect messages sent from that console. It does not count messages sent by the Firebase Cloud Messaging API.
Also see my answer here: Is it possible to get push notification stats like count of deliveries and opens when sending messages through Firebase notification API?
I'm having trouble figuring out whether or not FCM keeps logs of sent FCM push notifications, and if so, how to access them. I'm having intermittent issues with sending push notifications from an FCM server to an iphone app, and would love to be able to see at what stage the push is failing.
I found the below documentation that suggests that these logs should be kept somewhere:
https://support.google.com/googleplay/android-developer/answer/2663268?hl=en
("You can look up messages sent through Firebase Cloud Messaging with a registration token or message ID.")
However, I can't seem to figure out how to access them. Since my app is currently iOS only, I don't have an app in the Google Play Developer console, and my firebase console doesn't seem to contain any such logs. However, based on the possible message statuses in the documentation above (e.g. Accepted, sent to APNS), it seems like google / firebase should store message logs sent to iOS as well as to Android.
Thanks in advance for your help!
I want to send message from Amazon Simple Notification Service(SNS) to the http endpoint. There is no proper solid documentation on how to do that. Though I had read Amazon SNS documentation still I could not get entire picture.
Can anyone give me simple example on how Amazon SNS and http endpoint work together?
There good documentation for what you asking: http://docs.aws.amazon.com/sns/latest/dg/sns-dg.pdf
Look at the page #147, it describes what steps you need to do for sending messages to HTTP(s) endpoint.
Also check this example which describes how to create topic, subscribe endpoint, confirm subscription and start to receive notification messages from SNS (uses Java SDK): https://github.com/mfine/AmazonSNSExample
General picture is:
On the publisher side:
create topic and subscribe some endpoint to receive messages. After subscribing endpoint to topic, the endpoint will receive SubscriptionConfirmation message.
start publish to topic so your endpoints will receive notification messages
On the subscriber side (your endpoint should be able to handle at least confirm subscription request and notification messages):
confirm subscription: make HTTP GET request to the "SubscribeURL" URL which comes inside the body of the confirm subscription request. Before you confirm subscription your endpoint will not receive any messages from SNS
receive notification messages and do what you want
I am using AWS SNS for sending push notifications and I have used this article for the implementation http://mobile.awsblog.com/post/Tx223MJB0XKV9RU/Mobile-token-management-with-Amazon-SNS
I am storing the token and the endpoints in the server for sending the push notifications, but the problem is with GCM when the reg_id gets changed and pervious reg_id is still active then the aws update the pervious endpoint with latest token, due to which I have got two endpoints with same reg_id and when I am sending the push notification then it is getting delivered twice.
I have searched everywhere but I am not able to find the solution, how do I update my server DB to delete the older endpoint.
We are planning using Amazon SNS to send push notification to our users. I am wondering what happens if I do the following programmatically (not important but with PHP SDK)
Create a topic on the fly
Subscribe 10000000 users
Send a push notification to this topic
Delete the topic immediately after sending the push notification
Will all subscribers receive the push notification?
Don't do this. Nothing in the docs say that SNS snapshots the topic when you publish, so don't rely on that behavior even if it seems to work.