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

app automatically opens without unlock, if it was in recent when phone locked #2

Open
Deval99 opened this issue Sep 18, 2023 · 1 comment

Comments

@Deval99
Copy link

Deval99 commented Sep 18, 2023

full screen notifications are working properly, but when user keeps app on screen and locks the phone,
next time user opens the phone (without unlocking) app gets opened

this is happening due to "android:showWhenLocked="true"", but i want to open app ONLY when an incoming call arrives. is there any solution ?

Info about app:

  • It uses only one activity, which launches ionic+capacitor app.
@NePheus
Copy link
Owner

NePheus commented Sep 18, 2023

I am aware of this behavior, but unfortunately I also dont have a solution for this and cant afford time to it. As you already mentioned its the single activity thats used by design by capacitor. If there would be another activity to only handle this intents, it should be somehow limited to the 'fullscreen' action/view, but this is up to the developer. The developer could of course add the default navigation of the app to this fullscreen action and then the user could use the app like it was opened by the app icon and the issue would continue to exist.

I think best approach could be trying to create a second activity (if it doesnt make trouble with capacitors architecture) and write a hint to this plugin for some 'design rules' that this action is just meant to show kind of 'dismissable' action.

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