E
E
Evgeny Koryakin2019-01-16 13:12:14
Mobile development
Evgeny Koryakin, 2019-01-16 13:12:14

How to send PUSH notification on WooCommerce order confirmation?

Hello!
There is a simple React-Native mobile application that works in conjunction with WooCommerce. It is required to send a push notification when confirming the shipment of the goods.
In what ways is it possible to implement this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Bay, 2019-01-16
@Incorrectfree

if you do not take WooCommerce, and the application still works on the API, then briefly like this:
1) Take a service, for example, onesignal - it works well with notifications.
2) allow the device to receive notifications, subscribe the device to onesignal.
3) when placing an order, send pushId to your API.
4) when adding an order to the system, add the push number to the additional field.
5) add an event to change the status of the order - sending a push message from the server via api.
Stage 3, note, in this case it works only from the device from which the purchase occurred. Those. you may not even register a person in the system. In a more complex case, you must store the push of each device from which a person logs in. But this is already a link to a person's account.

R
Roman Alexandrovich, 2019-01-16
@RomReed

There is a library https://rnfirebase.io. I use it for push notifications. With a properly connected library, you can send notifications directly from the backend.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question