Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qduck opened this issue Jan 11, 2020 · 4 comments
Open

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

qduck opened this issue Jan 11, 2020 · 4 comments

Comments

@qduck
Copy link

qduck commented Jan 11, 2020

"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
                });
@ArhontSL
Copy link

Same problem...

@AmnaHijjawi
Copy link

+1

@ArhontSL
Copy link

ArhontSL commented Jan 14, 2020

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

@MOwais
Copy link

MOwais commented Jan 17, 2020

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants