![](https://cdn.discordapp.com/embed/avatars/4.png)
Hi all,
Are there any examples on how to send a push notification using server sdk
?
...
const title = "Hello";
const contents = "This is a test";
await messaging.createPush(
sdk.ID.unique(), // messageId
title, // title
contents, // body
[], // topics
[order.user_id], // users
[], // targets
{
activity: "orders",
orderId: order.order_id!,
}, // data
"", // action
"[IMAGE]", // image <-- I don't know what's supposed to be here!
"[ICON]", // icon - <-- I don't know what's supposed to be here!
"", // sound
"F7941E", // color <-- With or without `#` sign?
"", // tag
"[BADGE]", // badge <-- I don't know what's supposed to be here!
false, // draft (optional)
"" // scheduledAt
);
...
How do I configure this to send an image and to configure the push notification icon (just like postmates, uber eats, etc...)?
Where can I get the user_id
?
Any help is greatly appreciated.
Recommended threads
- Flutter Google Login not closing
In flutter and Android, using latest version and since a few days ago, the sign in popup from google does not go away after you sign in. It will still be displa...
- error message Invalid Origin. Register y...
Already I verified domain on console dashboard as aprl27.holilalu.online whent try to phone authutication android platform show error as error message: Invali...
- Query.notContains('users', blockedUserId...
Anyone knows how can i do that ? > users: string[]; As i know, Appwrite Query does not support `Query.notContains` i mean opposite side of `contains` due to ...
![](/images/bgs/pre-footer.png)