Rank 4: Virtual Machine
Hello Appwrite Team,
I'm experiencing a "SERVER ERROR" whenever I attempt to send push notifications using the Messaging API. The function fails without clear details on what might be wrong.
Here’s the exact code I’m using:
ID.unique(), // messageId 'Don\'t Miss Your Prayer Partner!', // title 'You have 24 hours to open the app or you will be set to inactive.', // body [], // topics (optional) [user.$id], // users (optional) [], // targets (optional) { fromName: 'Nosakhare', messageType: 'TEXT', message: 'You have 24 hours to open the app or you will be set to inactive', fromUserId: '0' }, // data (optional) 'open_app', // action (optional) null, // image (optional) 'default_icon', // icon (optional) 'default', // sound (optional) '#6E0FAD', // color (optional) 'inactivity_alert', // tag (optional) 1, // badge (optional) false, // draft (optional) null // scheduledAt (optional));```
Everything seems correct based on the documentation, yet the API consistently returns a server error. Could you please check if this is an issue on Appwrite’s end or let me know if any modifications are required?