Update passes of passbook - php

How to update passes of passbook by push notification. I get the pushtoken by webservice url. but i don't know how to update passes through push notification.
i am using simple php file for push notification.

check this, I use this code to send push notification to iOS, but I still finding for android
PHP Apple Enhanced Push Notification read error response

Related

IOS push notification banner

I am working in PHP. Now I want to send a notification that banner must not show on ios device but payload received by IOS device. This push notification will be sent from PHP.
Now I simply send the push notification in such a way that IOS device receive paylod only but must not show the banner and also not produce sound
{"aps":{"alert":"","badge":69,"sound":"","content-available":1,"mutable-content":1},"data":{"id":xxxxx,"badge":69,"type":"chat_message","message":"post.lambda sent you a message","content":"dmdnZ2c=","status":"S","sent_at":"2020-01-29T12:25:22Z","is_mute":true,"post":null}}
Above code that I write when I send this payload to IOS device then IOS device receive badge but not perform any other operation after receiving the notification
I did not found any solution that work perfectly in my case.

what is the proper way to save a firebase push notifications sent

I'm using firebase push notifications php api with android...
When I send a notification from firebase API, to android device, I also make a MySQL input, to register one copy of that, and work!
but...
What happen when the API sends too many push notifications?
There is no problem with my shared server?
I'm worried that my server will collapse for too many records for each push.
Right now It work like this...
Firebase API PHP send notification -> MySQL register that notification in one table -> Android Device recieve the notification.
but I don't think this is the right way...
so... the question is...
what is the proper way to save a firebase push notifications sent...?

How to display each push notification separately on android device using GCM

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.

Apple Pushnotification Issue

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

iOS - Silent push notification to send value

Is there a way to send values from a php page to objective-c? I want to simulate the event programming with the push notification: when in the web server change a value, it sends the value to the iOS in silent mode with the push notifications.
Thanks.
Maybe this can help you.
http://maniacdev.com/2011/05/tutorial-ios-push-notification-services-for-beginners/

Categories