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

StartActivity when app is paused #27

Open
blxs opened this issue Oct 28, 2014 · 6 comments
Open

StartActivity when app is paused #27

blxs opened this issue Oct 28, 2014 · 6 comments
Labels

Comments

@blxs
Copy link

blxs commented Oct 28, 2014

Hello,
thank you for the plugin!!!
it works fine but when the activity is paused or in background and you lock the screen the app will not been started...

ive tryed " android:launchMode="singleIstance"" but this does not work...

can you help me?

greetings

@Red-Folder
Copy link
Owner

Have you tried setting the showOptions in the addAlarm -> (https://github.com/Red-Folder/Scheduler-Plugin/wiki/addAlarm)

There are three options: None, WakeScreen & ShowOverLockScreen (see https://github.com/Red-Folder/Scheduler-Plugin/wiki/ShowOption)

@blxs
Copy link
Author

blxs commented Oct 28, 2014

Hey,
yeah i've tryed ShowOverLockScreen this works when the app is killed. but not when the app is in background

@Red-Folder
Copy link
Owner

Are you seeing anything in the logcat?

Is the alarm being broadcast, is it being handled, are there any error messages.

@Red-Folder
Copy link
Owner

This might be from bug 13

I'm afraid it's been a while since I've worked on the code, so difficult to remember where I got to

@blxs
Copy link
Author

blxs commented Oct 29, 2014

There are no errors. When i unlock the screen the app is in foreground.
But i cant get the app above the lockscreen and wakeup the device(When its already started)...

i will add some pictures and the logcat when im at home!

Thanks for your fast response!

@blxs
Copy link
Author

blxs commented Oct 29, 2014

Here are the screenshots:

  1. Start app setting timer
  2. Close the app
  3. Lock the screen

when the time is expired the device will not wakeup... when i unlock the screen the activity is in foreground. I hope this helps :)

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants