jamesisaac / react-native-background-task

Periodic background tasks for React Native apps, cross-platform (iOS and Android), which run even when the app is closed.
MIT License
1.1k stars 110 forks source link

registerHeadlessTask called multiple times for same key 'BackgroundTask' #35

Open xRahul opened 6 years ago

xRahul commented 6 years ago

Hi,

I am getting the following warning after reopening the app or reloading it.

registerHeadlessTask called multiple times for same key 'BackgroundTask'
kevinmeyvaert commented 6 years ago

You're probably executing BackgroundTask.define() multiple times, which you shouldn't. You should define once and afterwards you can BackgroundTask.schedule().

ghost commented 4 years ago

image image image

I have got this error. Please solve it.

ghost commented 4 years ago

and doesn't work on background.

OliEfr commented 4 years ago

I have the same issue. Does anyone know a solution? Greetings Oli

albertpb commented 4 years ago

The same problem. React native version: 0.61.5 if that helps. I think it happens only in development environment when app reloads.

hadpro24 commented 4 years ago

I have got the same warning.

Any body fine the solution ?

Mhmetengineer commented 3 years ago

@hadpro24 Did u solve this problem ?

prajna-h commented 3 years ago

I am facing the same issue

difasulthon commented 3 years ago

and doesn't work on background.

i have the same problem, any solution to solve this problem?

GalDayan commented 3 years ago

Same problem here.

mohity777 commented 3 years ago

any update ?

manny1001 commented 3 years ago

Greetings

Any updates from this, I'm still facing the same issue everyone else has.

Regards

Raniakhalifa commented 3 years ago

any update

ahmedRazamoosa commented 3 years ago

I have the Same issue??? But I have an idea.we can use this ['https://reactnative.dev/docs/headless-js-android'] for More Information Visit site

afzalali27 commented 2 years ago

any solution?

varda-altusnova commented 1 year ago

?

edritech93 commented 1 year ago

same issue for me