Web Developer
Does Appwrite Messaging support Critical Messaging for IOS? If yes, how can i send it? I already have the entitlement from apple.
Votes
1
Replies
3
Participants
Unknown
Messages
4
Web Developer
Does Appwrite Messaging support Critical Messaging for IOS? If yes, how can i send it? I already have the entitlement from apple.
@Afonso Inglês As mentioned in the forum thread, looks like that what Apple requires you to do server sided in order to send critical alerts is setting the sound field this way:
{ "critical": 1, "name": "default", "volume": 1.0 }
So currently it should be possible to set that from what I understand.
Rank 2: Process
Hey. @D5! Im unable to set the sound parameter as that :(
I get this error:
appwrite.exception.AppwriteException: Invalid sound param: Value must be a valid string and at least 1 chars and no longer than 256 chars
Rank 2: Process
print(appwrite_admin.messaging.create_push( message_id=appwrite_admin.id.unique(), title="Test", body="Test", targets=["7b65b22c9a8a"], sound={ "critical": 1, "name": "default", "volume": 1.0 }))