Back

Sending critical Alerts via APNS trough Appwrite-Messaging

  • 1
  • Self Hosted
  • Messaging
  • Apple
Timo
14 Jul, 2024, 13:29

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

TL;DR
Developers want to send critical alerts via APNS through Appwrite-Messaging. They suggest Appwrite support the `interruption-level` attribute for time-sensitive notifications. However, the developer currently communicates with APNS directly instead of using Appwrite. No solution provided.
RainyDev
3 Oct, 2024, 17:34

Did you figure this out?

Timo
3 Oct, 2024, 18:58

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.

RainyDev
3 Oct, 2024, 19:09

Oh thats unfortunate. Nonethless thanks!

RainyDev
3 Oct, 2024, 19:11

Seems like I just bumped it up again. So maybe someone from the core team sees it and can help out

Timo
3 Oct, 2024, 19:19

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

RainyDev
3 Oct, 2024, 19:26

Yepps

RainyDev
3 Oct, 2024, 20:00
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more