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

not work in "react-native": "0.61.5", and crashing

Open qduck opened this issue 5 years ago • 4 comments

"react": "16.9.0", "react-native": "0.61.5", "react-native-background-job": "^2.3.1",

BackgroundJob.register({ jobKey: JobKeyStr, job: () => { this.uploadvideoBackTask(formdata, JobKeyStr, data.source); } });

                BackgroundJob.schedule({
                    jobKey: JobKeyStr,
                    notificationTitle: "Notification title",
                    notificationText: "Notification text",
                    allowWhileIdle: true,
                    allowExecutionInForeground: true,
                    period: 1000
                });

qduck avatar Jan 11 '20 01:01 qduck

Same problem...

ArhontSL avatar Jan 14 '20 06:01 ArhontSL

+1

AmnaHijjawi avatar Jan 14 '20 09:01 AmnaHijjawi

It seems to me helped android.permission.FOREGROUND_SERVICE in AndroidManifest.xml

ArhontSL avatar Jan 14 '20 09:01 ArhontSL

It seems to me helped android.permission.FOREGROUND_SERVICE in AndroidManifest.xml

this worked for me: <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

MOwais avatar Jan 17 '20 14:01 MOwais