I am looking for a way to send custom push notification. I have already have a One Signal account and it works on my website. Now, I need to send push notification when someone creates a message to users. I have email notifications which work. How can I create custom push notification through php?
Thanks
Related
I have already experienced to send push notifications to android and apple device with specific device token or registered id and I did use it in different projects, but this time I am just looking for a solution where I can send a push notification to APP means whoever installed the APP will get a notification.
Please let me know if this is possible and if yes then how.
Thanks
You need push tokens to send notification and there is no option to send push message to all devices without knowing their token . But you can send topic notifications if user has subscribed to that specific topic . You may need topic subscription to send push message to all subscribed users .
Client side you can subscribe to topic like
FirebaseMessaging.getInstance().subscribeToTopic("TestTopic");
find it here
For example, I need to send a notification to a particular user. When the user sends me a trouble-message, I will push a notification which notifies him that the trouble will be fix soon.
Now, I have already created a push notification but even when the user is logged out it can still receive a notification. And when I'm using a different account it can still receive the same notification for the other user.
please help me create a push notification that will send to a specific-signed-in-user. Thank you. (Sorry I'm new here in android.) thank you very much again.
You cannot send to a specific user, you can only send to specific devices. Your server/app needs to handle the logic of users and keys associated with them
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.
I have to implement notification to users when the news on a site is added.
I have done this via email and now I have to do this notification in a browser. I guess, I should implement a push notification.
How can I add a push or any other suitable notifications in a browser ?
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