mssiegel / Frempco-web-client

Frontend for frempco.com
https://www.frempco.com/
3 stars 0 forks source link

Add smartphone warning to Student Page about screen going dark #66

Open mssiegel opened 2 months ago

mssiegel commented 2 months ago

Issue: Their is an iPhone "feature" which preserves battery life by immediately stopping all website activity if the phone goes dark and "goes to sleep". The website activity is also stopped if the user minimizes the browser and switches to another iPhone app. This causes Frempco to think they closed their browser and so it logs the student out.

The solution is if students know about it then they'll know to touch their phone when it gets dim and before it goes dark. That will prevent the iPhone from going to sleep.  So as long as students know about this iPhone logic they'll take action to stay connected.

To summarize: What happens if a student's screen or phone goes dark?

• iPhone: iPhones are very strict. It disconnects the student immediately after the screen goes dark. Additionally, just switching apps will log the student out. 

• Android: Android phones are more lenient. It waits 60 seconds after going dark to disconnect the student.  If the student reopens the screen during those 60 seconds they’ll remain in the chat. Also, switching apps is totally okay. 

Task: we should add a message to top of student page that should warn students about what happens if the page goes dark. It should detect if user is iPhone or Android phone and give the correct message. Example iPhone message: "Their is an iPhone 'feature' which preserves battery life by immediately stopping all website activity if it thinks your phone is inactive, such as when the iPhone goes dark and goes to sleep. If this happens Frempco will think you closed your browser and will disconnect you. iPhones are very strict. You'll be disconnected immediately after the screen goes dark. Additionally, just switching apps will log you out.  Solution: touch your iPhone when it gets dim and before it goes dark. That will prevent the iPhone from going to sleep."

Example Android message: "What happens if your Android phone goes dark and goes to sleep? For Android, Frempco waits 60 seconds after the screen goes dark and it will then disconnect you.  If you reopen the screen during those 60 seconds you’ll remain in the chat."

mssiegel commented 1 month ago

Can use this singular message for both Android and iPhone:

Technical tip: Smartphone web browsers will sometimes disconnect from the Frempco chatroom when the browser is inactive. For example 1) if the screen goes to sleep and goes dark or 2) if the web browser is minimized. Going inactive might cause you to lose connection and your partner will no longer see your messages. If that happens, you'll have to revisit Frempco, login again to your classroom, and restart a new chat. To stay connected, make sure your screen does not get inactive enough to go to sleep