Hello everyone,
I am trying to send critical alerts/notifications trough the Appwrite-Messaging tool. The app does have all the required entitlements, etc..
As of now, i have tried it with the Server SDK for NodeJS and the following code (see Picture).
For APNS to recognize a notification as critical, there needs to be a {"critical":1}-Parameter in the "sound":-Section of the payload send to APNS.
The code in the example however, will cause "{\"critical\":1}", which APNS will not recognize. Is there any way to get this in the right format, as the SDK only accepts strings as input?
Any help is appreciated
Did you figure this out?
Nope. For now, i am just communicating with APNS directly, without using the Appwrite tool. to be honest, i did not made any further attempts to get this to work, as just contacting APNS directly works fine for me, altough if someone figured it out, i would probaly make the switch, as that would save me some headaches.
Oh thats unfortunate. Nonethless thanks!
Seems like I just bumped it up again. So maybe someone from the core team sees it and can help out
That would be awesome. This could also be resolved, if Appwrite would support the ``interruption-level`-attribute which APNS recognizes. That way, time-sensitive notifications would also be possible
Yepps
Recommended threads
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...
- Whats best practise for Appwrite Cloud?
Appwrite Teams map very nicely to my needs, it is how i group users together. ... I use roles to define permissions. Should I also map a table to each team ? ...
- I am currently seeking opportunities as ...
Hey! 👋 I'm a Shopify guy. Been building stores for 8+ years. Still haven't lost my mind. Barely. I make stores that don't suck fast, smooth, and actually built...