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

Internet access (AJAX call) doesn't work in the background #513

Open
benkesmith opened this issue Jun 18, 2020 · 2 comments
Open

Internet access (AJAX call) doesn't work in the background #513

benkesmith opened this issue Jun 18, 2020 · 2 comments

Comments

@benkesmith
Copy link

It seems that whenever the app goes to the background, I can't initiate AJAX calls to a remote server... I know that some apps can get a permission to access data in the background, but I don't know how I can achieve this with Cordova. Is there something I should add to the info.plist file?

@robsontecle
Copy link

Use this variation of the plugin. It allows ajax to work in the background, but I recommend that you put in your application guidance on how to remove your application from the data and battery savings list. These functions can cause your application to stop.

https://www.npmjs.com/package/cordova-plugin-background-mode-fixed

@danielehrhardt
Copy link

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

3 participants