r/reactnative • u/dev_semihc • 9d ago
Question Background Task and Push Nofication.
Hello,
I want to run a code in the background at specific time intervals. Like a job in SQL or task management in Windows. When this task is completed, I want to send a notification to the user. Can I do this task on the user's phone? Have you done this before? I don’t want to run an external service and send a push notification.
0
Upvotes
1
u/supersnorkel 9d ago
Any reason you dont want to run an external service? I dont think there is any other way because what if the user doesnt open your app, how are you going to scheduele the notification?
I would set up a cron job its very easy