Comments (8)
You have to call enable
from your app, so the app has to be open.
from cordova-plugin-background-mode.
You mean after restarting the phone, the app exits from background mode and we have to run the app manually again?
from cordova-plugin-background-mode.
Do you realize what this plugin does? It prevents the OS from going to
sleep.
For the sake of your poor users, I would hope they could at least stop the
madness of your app sleep-depriving their phone, consuming their battery,
by restarting their phone.
On Thursday, February 5, 2015, ghominejad [email protected] wrote:
You mean after restarting the phone, the app exits from background mode
and we have to run the app manually again?—
Reply to this email directly or view it on GitHub
#54 (comment)
.
Snet from Gmail Mobile
from cordova-plugin-background-mode.
Is it possible that the plugin lets the device to go sleep and resume the app after waking up?
from cordova-plugin-background-mode.
What is your use-case? What exactly is your app doing that requires
constant bg-running?
On Friday, February 6, 2015, ghominejad [email protected] wrote:
Do you know a codova plugin that lets the device goes sleep and resume the
app after waking up?—
Reply to this email directly or view it on GitHub
#54 (comment)
.
Snet from Gmail Mobile
from cordova-plugin-background-mode.
No. A news app that should show some important news from the internet in the device notification area even when the app is closed by the user. I don't like to prevent the phone going to sleep but after waking up again the background service should continue running. I like your plugin lets the device goes sleep.
from cordova-plugin-background-mode.
Once again, background-mode plugin sucks naive developers in, wasting
their time and money.
, Walk away from this plugin and never come back. Apple will deny you.
You don't need this plugin.
ios created the "background-fetch" system in ios 7 for precisely your
use-case. Background-fetch, when enabled, will awake your app, at
roughly 15min intervals, and provide your app exactly 30s of background
running, just enough time to do an HTTP request to your server to fetch
some info, perhaps send a local-notification to the user and/or update your
UI, before going back to sleep again.
I made a cordova plugin that will allow you to easily take advantage of
this system. It's ios-only, since Android doesn't have this system yet,
but it'll get you safely started.
https://github.com/christocracy/cordova-plugin-background-fetch
On Friday, February 6, 2015, ghominejad [email protected] wrote:
No. A news app that should show some important news from the internet in
the device notification area even when the app is closed by the user. I
don't like to prevent the phone going to sleep but after waking up again
the background service should continue running. I like your plugin lets the
device goes sleep.—
Reply to this email directly or view it on GitHub
#54 (comment)
.
Snet from Gmail Mobile
from cordova-plugin-background-mode.
Thats great,
I really need it in android devices even with running always in background. probably i have to write a plugin for android and WP.
Thank you for your suggestion
from cordova-plugin-background-mode.
Related Issues (20)
- In iOS, next audio is not playing when app is in background
- Keep youtube iframe video playing when app is in background HOT 10
- Cannot read properties of undefined (reading 'backgroundMode') HOT 2
- App crashes in Android!
- Not run on Android 11 HOT 1
- Not working with cordova-android 10 HOT 1
- Cannot find name 'BackgroundMode'. with ionic HOT 1
- android-sdk version check failed HOT 3
- ionic background mode not working when phone is unplug in android 10+
- inappbrowser issue
- Background service does not work in SDK 31, app crashes HOT 2
- Ionic: Background mode does not work in Android 12 with API level 31 HOT 7
- Does not work in IOS anymore HOT 1
- I did my own fork to fix moveToBackground on Android HOT 1
- Background mode gives Error Targeting S+ (version 31 and above) on android HOT 3
- THREAD WARNING: exec() call to BackgroundModeExt.foreground blocked the main thread for 41ms. Plugin should use CordovaInterface.getThreadPool(). HOT 1
- App crashes on Android randomly
- App is crashed when moving to background when using a foreground icon HOT 1
- App crashes when enabling background mode on Android 12+ (target SDK level 31+) HOT 5
- CORDOVA: Background mode works for only 5 minutes on android HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-background-mode.