Raja0sama / rn-foreground-service

Foreground Service for React Native made with ❤
https://rn-foreground.vercel.app/
148 stars 70 forks source link

Life Cycle the next level: RebootActionReceiver #72

Open ahmad-crossplatform opened 1 year ago

ahmad-crossplatform commented 1 year ago

First of all ... GREAT WORK !!!

I would like to contribute to this project by adding a rebootActionReceiver which would allow the foreground service to start even after the phone is booted (restarted) .

For some reason I am not able to do this even when adding the "right code" . Do you think you can have a look with me? I am not the best native developer .

My Fork

EDIT: My guess is that when restarting the phone and the foreground service trying to start , it requires the service definition from Headless but that is not being persisted . Am I right ?