Back

Little help needed : I want to send push notification in mobile apps from react website

  • 0
  • Android
Shubham
11 Sep, 2023, 16:23

I want to send push notification in mobile apps from react website, i am not using server side code so can you tell me how will i send push notification directly from react and appwrite function ? i am using one signal for sending push notification

TL;DR
The user wants to send push notifications from a React website to mobile apps. They mention using Appwrite CLI and uploading a Node.js function, but it doesn't submit. They suggest using OneSignal's Node SDK and creating a Node cloud function. The user asks for help on sending push notifications directly from React and Appwrite function.
Binyamin
11 Sep, 2023, 17:40

It seems like OneSignal has a good Node SDK

You can then create a Node cloud-function. Within it add the One Signal Package Then the rest is like a regular JavaScript code.

Then you can use the client SDK to execute the function from the device.

Binyamin
11 Sep, 2023, 17:41

You can also use many more SDKs of OneSignal that has function runtime within Appwrite.

Shubham
11 Sep, 2023, 17:43

but when i upload node js function in appwrite function , it does not submit

Shubham
11 Sep, 2023, 17:43

they asked for .gz file

Binyamin
11 Sep, 2023, 17:44

Use Appwrite cli to create and deploy the function https://appwrite.io/docs/functions-deploy#cli

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more