Prevent iOS mobile safari from going idle / auto-locking / sleeping?

NoSleep.js seems to work in iOS 11 and it reportedly works on Android as well. Old answer This is a simple HTML-only method to do that: looping inline autoplaying videos (it might also work in Android Chrome 53+) <video playsinline muted autoplay loop src=”https://rawgit.com/bower-media-samples/big-buck-bunny-480p-30s/master/video.mp4″ height=60></video> See the same demo on CodePen (includes a stopwatch) Notes … Read more

Force a WebView link to launch Safari?

To expand upon what Randy said, this is what I use in my application to make every http://, https://, and mailto:// URL open in the external Safari or Mail applications: -(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType; { NSURL *requestURL =[ [ request URL ] retain ]; if ( ( [ [ requestURL scheme ] isEqualToString: @”http” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)