Code Monkey home page Code Monkey logo

Comments (5)

trivedigaurav avatar trivedigaurav commented on August 17, 2024

@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.

pat1 avatar pat1 commented on August 17, 2024

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.

pat1 avatar pat1 commented on August 17, 2024

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.

kiok46 avatar kiok46 commented on August 17, 2024

@pat1 your gist link doesn't exist anymore. please update it for future references.
I think this issue could be closed?

from plyer.

pat1 avatar pat1 commented on August 17, 2024

new gist:
https://gist.github.com/pat1/f7022a065ae84cb1aacb1bc31dc181b3

from plyer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.