I have an android phone. To my complete frustration, the most I can do in settings to keep my phone on for the longest period of time is ten minutes. What I was wanting to accomplish is listening to a podcast or streaming without my phone turning off on its own. I was resistant to downloading another app to fix this problem, so I went on a little search to see if there was another way.
I found The Droid Guy website, read through the instructions on how to keep my droid "awake' I found instructions that worked. Basically, you get into the developer side of your android and make a change. This worked for me and I hope it works for you too.
Android: Use Developer Options to Stay Awake While Charging
If your phone is plugged in and you need the screen on indefinitely — for kiosk use, a recipe on the counter, or a dashboard — Android has a hidden “Stay awake” toggle that ignores the screen timeout entirely. It only works while the phone is charging, which is a useful safety net against battery drain.
- Open Settings → About phone. On Samsung, tap Software information first.
- Tap Build number seven times in a row. You will see a toast that says “You are now a developer!”
- Go back to Settings → System → Developer options (on Samsung it is under Settings → Developer options at the bottom of the main Settings list).
- Scroll down and toggle Stay awake on.
The moment you unplug the charger, screen timeout returns to whatever you set in Display. Re-plug and the screen stays on again.
If “Stay awake” is missing from Developer options, your device manufacturer has stripped it. This is common on some Huawei and older Vivo builds. In that case, use a Caffeine-style app instead.
Apple, doesn't have this issue because you can choose to keep your iPhone awake.