android - How to enable my react native app to work continuously on background? - Stack Overflow

admin2025-04-18  3

I am using React Native to create a Digital Wellbeing App. I have so far worked on fetching the usage stat. But I am stuck on enabling my app to work on background.

I have tried some packages but they dont work. Is there any way to work on this?

Edit: I am trying to fetch usage time from third party apps. For this, my app should work on background continuously. I will set a certain time for any app, lets say I set 2 hours for my facebook app. After 2 hours of usage my react app should close facebook.

Till now I have used react bg actions and few others.

转载请注明原文地址:http://anycun.com/QandA/1744933489a89682.html