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
- MongoDb Database Breaks integer[] & bigi...
I've got a table with the below column created. When I try to insert the value `[-3408048000]` into it, the dart sdk cloud function call is successful (no error...
- Delete on cascade from Cloud Function
I'm writing a Python function that deletes a user's main row from a table in my database. This row has relationships with other tables that use cascade deletion...
- 1.9.6 Console handles all array columns ...
When creating or updating a row in the appwrite 1.9.6 web console, the form treats all list columns as a type string. Even if the column is a list of booleans, ...