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
- Self Hosted GitHub connection not adding...
After upgrading to 1.9.6 i noticed that i cannot search for new repositories when trying to add new functions. I removed the existing github connection via Set...
- Unable to init function via cli
Hello! I have created a new self hosted instance of appwrite 1.9.6 and have connected to that insatnce with the cli 27.2.0 that was released a few hours ago. Wh...
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...