Comments (8)
When you say "sleep" - do you mean just turning off the screen?
If so, then yes it should work. If you have your device connected to your development environment you should see the logcat messages (assuming you are using the MyService sample).
from bgs-core.
Thanks for answering!
"When you say" sleep "- do you mean just turning off the screen?" YES
my scenario
- I transfer the apk to your device - run android .... - -device
- Disconnect the device from the computer
- Switch off the screen to ensure that the service is running. But the service also sleeps. Tested on two devices
Although very simple I must be doing something wrong
Thank you!
from bgs-core.
How do you know the service isn't running?
On 11 Feb 2014 18:54, "krgm03" [email protected] wrote:
Thanks for answering!
"When you say" sleep "- do you mean just turning off the screen?" YES
my scenario
- I transfer the apk to your device - run android .... - -device
- Disconnect the device from the computer
- Switch off the screen to ensure that the service is running. But the
service also sleeps. Tested on two devicesAlthough very simple I must be doing something wrong
Thank you!
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-34791049
.
from bgs-core.
I'm sorry I expressed myself poorly
Can not really say that the service does not work. Just is not working for my need.
I found that it does not work for my needs when I enable the timer and get response only when the device is turned on or connected to a power source screen. When I disconnect the device from a power supply and turn off the screen simply the service for of me to respond within the time set in enabletimer
As I already told I must be doing something wrong in a simple solution
thank you
from bgs-core.
Sorry for the delay.
Similar issues in the past have proven to be local issues with the developer having a problem with their code.
What I am trying to understand is how do you know that the service is also sleeping?
What is the background service setup to do (in the doWork()) or are you just using the MyService example provided with the sample?
from bgs-core.
Are you still experiencing this issue?
from bgs-core.
Sorry to have answered before
I only managed to meet my need for android developing natively. Natively it worked out.
Thank you for your attention!
from bgs-core.
Ok, good stuff. Thanks
from bgs-core.
Related Issues (20)
- Error Occurs on startService(success,failed) ;
- Backgound service stops when the app is terminated HOT 2
- creating multiple service class HOT 2
- Does this plugin works with local notifications? HOT 2
- Integrating with NotificationListenerService would it work?
- If Background Service is Running Through Any Local Notification or Alerts?
- Where to put MyService.java in IONIC? Android is unable to find/bind. HOT 2
- Error on Boot
- Its not working in Android 10 HOT 1
- running cordova inside of a service HOT 5
- What is service will not running when app closed ? HOT 8
- It's Possible MyService.java Call Javascript Function ? HOT 3
- ideas to make a service to continue receiving push notifications HOT 2
- Build Android Error HOT 13
- Add method onCleanup to override
- Can I load a third party android library?
- Service starting but restart on exit failing
- Application run but factory is empty
- How to stop a Countdown when the App is backgrounded (Xamarin forms) HOT 2
- Detect the volum up pression in background service
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 bgs-core.