From 2a193078f86bc700311df5f95369b8bdd7110336 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Thu, 5 Jun 2014 05:20:34 +0000 Subject: [PATCH] fix(aalborg_theme): Support fullscreen mode if user adds app to homescreen Fixes #6896 --- mod/aalborg_theme/start.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mod/aalborg_theme/start.php b/mod/aalborg_theme/start.php index 1b478037236..4144263fae9 100644 --- a/mod/aalborg_theme/start.php +++ b/mod/aalborg_theme/start.php @@ -111,6 +111,17 @@ function aalborg_theme_setup_head($hook, $type, $data) { 'name' => 'viewport', 'content' => 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0', ); + + // https://developer.chrome.com/multidevice/android/installtohomescreen + $data['metas'][] = array( + 'name' => 'mobile-web-app-capable', + 'content' => 'yes', + ); + + $data['metas'][] = array( + 'name' => 'apple-mobile-web-app-capable', + 'content' => 'yes', + ); $data['links'][] = array( 'rel' => 'apple-touch-icon',