I want push notification by using GCM, all things are done properly, like API key & others.
I got success & also received notification, but after sending few notifications now i'm not getting any notification & getting following erro
{"multicast_id":7413445345804388431,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]}
please help for this, Thanx in advance
error":"MismatchSenderId it says that your sending push notifications from another sender id, not from your registered send id. please check your sender id properly.
Double check the Sender ID and APK_KEY, they must match or else you will get that MismatchSenderId error. In the Google API Console, look at the URL of your project:
Refer this link https://stackoverflow.com/a/11316399/964741
Related
I am getting this response when I submit an email, as I am working on the API of SendGrid I need to grab the stats of each mail i sent.. for that purpose I want the Message-ID in response so I could save that in db.. I have looked over the docs but unable to make any progress.. Thanks in Advance
But i want to get email activity by passing message ID
Note: Currently mail response give "X-Message-ID" but i want Message ID
https://sendgrid.api-docs.io/v3.0/email-activity/filter-messages-by-message-id
Thanks...
The X- prefix in a header means that it is a custom header and not part of the standard. This has become less favoured over time, but it is still found in use across the internet. X-Message-Id is what you're looking for.
I am sending push notification to my phonegap app from server. Its getting delivered successfully, but the problem is if I send multiple notifications old one get overrides.
For example
at 10:00 AM -
Notification 1 Received
at 10:01 AM
Notification 2 Received
in this Notification 1 Received get overwrite by second message. But I want to show both messages as they important.
I googled it and found solution on stackoverflow for same.
GCM message is getting overridden?
but its for android, and I am using phonegap and php to send notification,
is there any way to assign that we can retain both messages on user screen.
Thanks in advance.
Your issue is with the payload data you are sending with PHP.
From the documentation at https://developers.google.com/cloud-messaging/http-server-ref#notification-payload-support
tag: Indicates whether each notification message results in a new entry on the notification center on Android. If not set, each request creates a new notification. If set, and a notification with the same tag is already being shown, the new notification replaces the existing one in notification center.
One option is to treat tag as a uniqid, as long as you do not really need to go back and update some unread notifications. If you do need to update a notification, choose an id that works in your case.
Currently we are using Mandrill to send our emails, when ever Mandrill detects a bounce we get the original headers along with the bounce or a subaccount where the email was send from.
In Amazon SES we are getting the notifications through SNS thats no problem but besides the email from the user we get no original information back. So we have no idea what email campaign the user bounced on etc.
Anybody that knows how to handle this?
every SNS message contain a "mail" part with the messageId see. If you are sending a mail you receive as the only response the messageId see.
so I store all the messageId together with information I later maybe need if that mail bounces or gets complaints and if I receive a bounce I can query all the information with the given messageId.
You can use the regular expression to get messageId
In python i use like this
message_id = re.findall(r"(\w+(?:-\w+)+)#email.amazonses.com", json.dumps(event))[0]
Similar thing you can try in php
from the dashboard -> push, when we click "+ send a push", it displays the number of recipients > 0. when we select send to everyone, device type ios clients (all of our recipients are on ios) and send a message and when we go back to:
/push_notifications
the latest entries show 0 subscribes
There were no error messages displayed while sending. Just to reiterate, we selected send to everyone, not particular channel. No one received the push.
The older entries still show > 0 subscribers, the last few show 0.
Any idea what might be happening?
Thanks.
Check the format of your Json, quite often with Parse.com when you send json push notification that isn't in the correct format it will fail silently. Also Double check your certificates in parse.com. Ensure you have a .p12 with no password in the push notifications settings
I am new for apple push notification. I am currently working on ios app with chat funcationality. For this app, web-services are built in PHP.
There is a functionality, when user send a chat message to another user that time we send a push notification through PHP that web-service to message receiver user.
Notification working fine that I have checked.
Now issue is, sometimes push notification works fine but sometime its not.
So I want to know when ios push notification fails to send.
I have put write to log and log shows notification sent successfully.
Thanks in advance :)
You can use the Feedback service to get information about failed push notifications via APN:
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/CommunicatingWIthAPS.html#//apple_ref/doc/uid/TP40008194-CH101-SW3
Looks like the link doesn't anchor to the section - so you will need to search for the entry
:( sry.
Hope that helps