Problem marking Apple Push-Notificaton as "mutable-content" for increasing the app-icon-badge count
- 0
- Self Hosted
- Functions
- Messaging
- Apple
I was able to set up Push-Notifications via Appwrite function for my iOS App. I now wanted to increase the Badge count everytime the user gets a notifcation. Using the "Push Notification Service Extension" seems to be a common way to do it. I stumbled across the problem to mark the Notification with the payload " "mutable-content":1 " as mentioned here: https://medium.com/@jpmtech/push-notification-service-extension-in-swift-b1a0b68051d6
This is the code of creating the Push-notification mentioned here: https://appwrite.io/docs/references/cloud/server-nodejs/messaging
ID.unique(),
title,
body,
undefined,
recipients,
undefined,
{
key : "xxxx"
},
undefined, // action
undefined, // image
undefined, // icon
"default", // sound
undefined, // Color
undefined, // tag
undefined, // badge
false,
undefined, // scheduledAt
true, // contentAvailable
false,
MessagePriority.Normal
)```
I was thinking the "contentAvailable" input-parameter would do the trick, but it does not. Any idea? With the Appwrite UI i can't even set this option, when creating a Message.
I am able to work with the notifications send via the Apple Push Notification Center, but I am having troubles with the ones sending from my appwrite-function. How do I know? The function in swift would modifying the title of the notification, when it is marked correctly.
Recommended threads
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...