This topic is locked

Mobile Teplate on iPad on PHPR v7

10/28/2013 7:02:34 PM
PHPRunner General questions
A
anjeko author

Wonder if anyone else has developed mobile app and run on iPad?
I found that mobile app is not executed on iPad as mobile app ( mobile template ).

Firstly my app dosplayed in mobile form and in the next second changed format to standard PC browser format.
Any Ideas and comments?
Thanks very much for testing and providing solution.
Jerry

C
cgphp 10/29/2013
Sergey Kornilov admin 10/29/2013

PHPRunner 7 treats iPad as a desktop browser by default. To display mobile version on iPad and other tablets modify C:\Program Files(x86)\source\include\common\RunnerJS\Runner.js file in text editor.
Replace

---------------------------------

isTablet: function() {

return !Runner.debugMode && this.getScreenDiagonalInchSize() > this.maxMobileInchScreenDiagonal; //#7951

},



---------------------------------

with

---------------------------------

isTablet: function() {

return false;

},



---------------------------------

After building the application clear cookies (Settings->Safari) in your iPad and browse the pages.
In the next update of PHPRunner we'll add a few more mobile related options so you do not have to modify source files.

Sergey Kornilov admin 10/30/2013

Just wanted to add that in couple of days we'll have an update with 'Use Desktop version on tablets' option. This will control if iPad will be displaying desktop or mobile version of the website and no changes in the code will be required.

A
anjeko author 10/31/2013



Just wanted to add that in couple of days we'll have an update with 'Use Desktop version on tablets' option. This will control if iPad will be displaying desktop or mobile version of the website and no changes in the code will be required.


Hi Sergey,
Thanks very much I am happy to wait for this addition.
Regards
Jerry