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

Allow screen to be pinned to prevent babies closing the app #5

Closed
pserwylo opened this issue Sep 30, 2021 · 5 comments
Closed

Allow screen to be pinned to prevent babies closing the app #5

pserwylo opened this issue Sep 30, 2021 · 5 comments

Comments

@pserwylo
Copy link
Member

The Baby Dots allows the screen to be locked, in which case the baby using the phone cannot accidentally close the app and cause damage elsewhere on the device.

I propose this is done by forcing them to tap the hang up button multiple times in succession, with appropriate prompts to any adult using the app so they know to do this.

@yamatt
Copy link

yamatt commented Oct 21, 2021

The pin feature in Android has it's own mechanism to escape by pressing back and switch buttons (either side of the home button) at the same time.

I recommend relying on that first.

@pserwylo
Copy link
Member Author

Welcome, and thanks for being the first person to comment on my little project here :)

Yes, the approach put in play definitely still allows for using the default mechanism supported by Android. My experience experimenting with the Baby Dots app was that although it works just fine, the user experience can be clunky and hard to use/remember. Even though Android reminds you of exactly how to escape with a prompt each time you enter screen pinning mode - my experience watching users is that they don't read this, click "ok", and then have no way how to exit this sticky mode.

F-Droid has built a new version to be deployed in the next couple of days. Please feel free to let me know once it is released as to whether it works well enough for you and your little one.

@yamatt
Copy link

yamatt commented Oct 21, 2021

Hello! Always on the look out for interesting baby apps for my one year old to keep him quiet for a bit when he wakes up in the morning 🙂

What you say is fair given a baby is likely to grab the screen and the pin notification can be dismissed by tapping elsewhere on the screen.

The other consideration is that like with PianOli that a baby may find it too easy to hit the escape sequence. Although as you say, Baby Dots works pretty well.

@pserwylo
Copy link
Member Author

Funny you should mention that. There is a good discussion on the PianOli tracker about how easy or hard it is to unlock.

For this reason, in order to implement unlocking in this app, I've taken the code from BabyDots, extracted the functionality for unlocking into something that I can publish as a separate library. My hope is that it will allow easy configuration where parents can choose an unlock mechanism that works for them and their baby and switch easily if one becomes too easily to unlock. Hopefully we can build a little array of user friendly but baby-safe ways to lock the app that works for both BabyDots, BabyPhone, and perhaps even other apps such as PianOli.

@pserwylo
Copy link
Member Author

Closing as complete. For some time we've had this featuer now. I've also extracted the code into a common library babydots/immersivelock whcih is now shared by BabyDots, BabyBook, and this repo.

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