Comments (5)
@pat1 I assume you are talking about the example gps app. I didn't implement on_resume for the app (http://kivy.org/docs/api-kivy.app.html#kivy.app.App.on_resume) so you can expect this behavior. This can be fixed.
I am not sure what exactly you mean when you say: "If I put gps.stop() in on_pause method the app is stalled too.".
from plyer.
I have my own app (not the example gps app). I have implemented on_stop on_pause on_resume.
The app works well; the app works if I use gps (gps.configure; gps.start; gps.stop). The app works if the phone go to sleep mode after I have called gps.stop. The app flash il I call gps.configure, gps.start and the the phone go to sleep. The app flash with or without gps.stop in on_pause method.
I can try to write a test case starting from gps example
from plyer.
I found a problem in my app; I can replicate the freeze in modified gps example:
https://gist.github.com/7f74e5158c49974fc557
how to reproduce:
activate gps by button
go with the phone to sleep mode
exit from sleep mode
the app is frozen
there is a bug in my main.py ; uncomment line 74 and all work well.
So it's not a true plyer bug but you can take in account this condition.
Paolo
from plyer.
@pat1 your gist link doesn't exist anymore. please update it for future references.
I think this issue could be closed?
from plyer.
new gist:
https://gist.github.com/pat1/f7022a065ae84cb1aacb1bc31dc181b3
from plyer.
Related Issues (20)
- Persistent notification HOT 1
- macOS: AttributeError: 'NoneType' object has no attribute 'setDelegate_' HOT 1
- Support mail address is broken HOT 1
- Remove references to distutils HOT 2
- Document platform-specific installation options. HOT 1
- notification.notify() fails druing .setDelegate_() method HOT 3
- New PyPI release, please HOT 3
- local variable 'values' referenced before assignment
- Foreground Service Notification Error HOT 4
- Is There A Way To Close The FileChooser Without User Interaction? HOT 1
- please replace `mock` by `unittest.mock` HOT 2
- Notification customization feature: notification window title isnβt working properly. HOT 1
- Icon tray icons not dispearing after notification has been dismissed HOT 1
- Mac OS battery status HOT 7
- audio gives error OSError: exception: access violation reading 0xFFFFFFFFFFFFFFFF on windows HOT 1
- How do I read gyroscope data on android? HOT 1
- Plyer GPS object not working HOT 4
- Update import usage to comply with correct function signature HOT 1
- WiFi function
- Plyer Native camera Shows error HOT 6
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 plyer.