react-native-background-task icon indicating copy to clipboard operation
react-native-background-task copied to clipboard

registerHeadlessTask called multiple times for same key 'BackgroundTask'

Open xRahul opened this issue 6 years ago • 17 comments

Hi,

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

registerHeadlessTask called multiple times for same key 'BackgroundTask'

xRahul avatar May 05 '18 14:05 xRahul

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

kevinmeyvaert avatar Sep 06 '18 11:09 kevinmeyvaert

image image image

I have got this error. Please solve it.

ghost avatar Oct 12 '19 06:10 ghost

and doesn't work on background.

ghost avatar Oct 12 '19 06:10 ghost

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

OliEfr avatar Nov 19 '19 13:11 OliEfr

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

albertpb avatar Feb 06 '20 04:02 albertpb

I have got the same warning.

Any body fine the solution ?

hadpro24 avatar May 24 '20 02:05 hadpro24

@hadpro24 Did u solve this problem ?

Mhmetengineer avatar Sep 15 '20 07:09 Mhmetengineer

I am facing the same issue

prajna-h avatar Oct 06 '20 08:10 prajna-h

and doesn't work on background.

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

difasulthon avatar Oct 09 '20 08:10 difasulthon

Same problem here.

GalDayan avatar Jan 07 '21 12:01 GalDayan

any update ?

mohity777 avatar Jan 30 '21 08:01 mohity777

Greetings

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

Regards

manny1001 avatar Mar 22 '21 05:03 manny1001

any update

Raniakhalifa avatar Jul 12 '21 14:07 Raniakhalifa

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

ahmedRazamoosa avatar Sep 02 '21 17:09 ahmedRazamoosa

any solution?

afzalali27 avatar Jun 07 '22 10:06 afzalali27

?

varda-altusnova avatar Jun 21 '23 11:06 varda-altusnova

same issue for me

edritech93 avatar Jul 27 '23 07:07 edritech93