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

not working in deep sleep #132

Open
sd-timaru opened this issue Aug 23, 2024 · 16 comments
Open

not working in deep sleep #132

sd-timaru opened this issue Aug 23, 2024 · 16 comments

Comments

@sd-timaru
Copy link

Hi!
I have an app that sends the device location upon request. If the location is not retrieved in an specified amount of time, the app sends an notification message.
All works fine if the app is in foreground or background (even after device restart). But, if the device is in deep sleep (not used at all for hours) the app always send the message that the location was not retrieved in the specified time.
In the app logs I see that the background service is started, but no gps data is retrieved.
Any idea on how to solve this?
Thanks!

@sd-timaru
Copy link
Author

sd-timaru commented Aug 26, 2024 via email

@shashikiran918
Copy link

hi @sd-timaru can you show me your AndroidManifest.xml file ?

@sd-timaru
Copy link
Author

sd-timaru commented Aug 27, 2024 via email

@shashikiran918
Copy link

shashikiran918 commented Aug 27, 2024

how u are requesting user using
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/> and what is ur
wakeLockTime how much u given ?

@sd-timaru
Copy link
Author

sd-timaru commented Aug 27, 2024 via email

@shashikiran918
Copy link

what is ur
wakeLockTime how much u given ?

@sd-timaru
Copy link
Author

sd-timaru commented Aug 27, 2024 via email

@shashikiran918
Copy link

have you tried using wakeLockTime = 1440

@sd-timaru
Copy link
Author

sd-timaru commented Aug 27, 2024 via email

@shashikiran918
Copy link

shashikiran918 commented Aug 27, 2024

if you have to keep alive the plugin,

But the default wakelocktime is 60, we can't set wakeLockTime=0 using these plugin and can you explain what is use of setting The default 60 min:

@sd-timaru
Copy link
Author

sd-timaru commented Aug 27, 2024 via email

@sd-timaru
Copy link
Author

sd-timaru commented Aug 27, 2024 via email

@shashikiran918
Copy link

shashikiran918 commented Aug 28, 2024

Hi @sd-timaru, to prevent your device from entering deep sleep mode, you can visit Don't Kill My App. Some mobile phones have an 'Advanced Optimization' feature that includes a setting called 'Sleep Standby Optimization.' Ensure this is turned off to prevent your app from being affected. Also, could you let me know the name of the device you're using? .

@sd-timaru
Copy link
Author

sd-timaru commented Aug 28, 2024 via email

@shashikiran918
Copy link

shashikiran918 commented Sep 4, 2024

hi @sd-timaru without <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/> permission these plugin won't work ?

@sd-timaru
Copy link
Author

sd-timaru commented Sep 6, 2024 via email

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

2 participants