Comments (4)
hm i have an issue for this already #168 and a PR albeit broken
from houston.
It looks like Houston currently uses the legacy, binary notification format instead of the HTTP/2 api. Apple so far has not provided any documentation on how to supply this parameter with the legacy notification, or if one is even required. Has someone been able to test that pushes through Houston are actually rejected from an iOS 13 device, or are we just going off of possibly inaccurate documentation?
from houston.
I can confirm rejections from iOS 13 devices. Houston reports a successful send, but the push notification never reaches the device.
from houston.
If you noticed that some messages are not getting received by the device, check your payload. Chances are, the payload does not include an alert
parameter -- probably because you meant to send it as a 'background' message, like updating the badge, or signalling.
A workaround for this is to send a payload with some alert
text (try an empty string), and the message will be received by the iOS 13 device.
Example:
notification = Houston::Notification.new(device: token)
notification.alert = ''
notification.badge = 2
notification.category = 'SOME_CATEGORY'
notification.content_available = true
APN.push(notification)
from houston.
Related Issues (20)
- Usage with APNs Authentication Key .p8 file HOT 8
- Set title HOT 2
- Cannot pass content-available = 0 HOT 2
- How Does Houston Encode Push Tokens? HOT 1
- Exception sending notification: password must be at least 4 bytes HOT 6
- Where do you recommend we store the pem key? HOT 3
- Should support multi-topics certificate? HOT 2
- setting notification.mutable_content = true causes the notification to not be sent HOT 2
- Exception sending notification: getaddrinfo: nodename nor servname provided, or not known HOT 2
- Should use apns-priority:5 instead of an empty sound string for silent push notificaitons HOT 2
- Getting nil back with no errors when APN.push(notification) and notification is not delivered. HOT 14
- My APN are rate limited to one per 20-25 seconds HOT 1
- Changelog
- Where I can find the CI service? HOT 2
- apns-push-type header
- APNs will no longer support the legacy binary protocol as of November 2020 HOT 11
- Cannot send silent notifications via CLI
- Expiry field is not documented HOT 2
- Send notification to many device tokens at once
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 houston.