Sending onesignal push notification when it detects data change in firebase?

How do I do it?
it’s only for personal use, hence I can cut corners or I don’t have to worry much about stability, scalability, and system security.

You need to use background task extension made by one and only @Xoma
but this will cost alot for getting value for each second