Google maps screen stays on


How can i setup a shortcut so that whenever I open the google maps app on my iphone it does not go away after inactivity period ?

Can anybody help on this ?

In what way is it “going away after an inactivity period”?

Do you mean how do you stop the device turning off the screen for power saving? If so the app would need to have a setting to override auto lock or you would have to set the auto lock feature manually. I’ve not yet seen anything in Shortcuts or helper apps that would let you toggle the auto lock setting on an open/close app automation.