Page 1 of 1

iOS Web App "fullscreen capable"

Posted: Sat Nov 09, 2013 1:27 pm
by Ram

Dear Appery,

description: I set me web app icon to the iPhone home screen by "Add to Home Screen" from mobile safari for getting the "Full Screen" capable effect.

problem: whenever I send my web app to the background (moving to another app) and then returning to my app it reloads and force me to re login instead of staying in its last page just like in safari.

solution: i found a "hack" that set the session cookie

needed help: where in Appery i use that code:
code
// Start or resume session
session_start();

// Extend cookie life time by an amount of your liking
$cookieLifetime = 365 * 24 * 60 * 60; // A year in seconds
setcookie(session_name(),session_id(),time()+$cookieLifetime);
/code

Thank you all in advance!
Best,
R.


iOS Web App "fullscreen capable"

Posted: Sat Nov 09, 2013 6:20 pm
by Ram

some more information for anyone who can help me with this as i have no experience working with cookies, this link shows how to use a jquery plugin to work with cookies, what i'm missing (among other :)), how do i get the correct session_id and/or session_name for the correct cookie (Appery/my website) to get the result from the workaround described in the post above?


iOS Web App "fullscreen capable"

Posted: Sat Nov 09, 2013 7:10 pm
by Ram

using this link i read/write data from cookie, but to which one? and to what key?


iOS Web App "fullscreen capable"

Posted: Sat Nov 09, 2013 10:08 pm
by maxkatz

You only have access to cookies set from your app.