@robocoder opened this Issue on August 11th 2009 Contributor

For mobile devices, we'll probably want to:

  • define minimum mobile web browser requirements or target a range of models (e.g., iPhone, Blackberry, Android)
  • templates optimized for small screens
  • non-Flash alternative for charts (either server or client-based); see #545 or #804
  • footer hook (e.g., to switch between Classic/Full view vs Mobile view); see #613 and/or #615
@robocoder commented on August 12th 2009 Contributor

Attachment: stub mobile UI plugin; render footer to switch between view types
ActiveMobile.zip

@robocoder commented on August 11th 2009 Contributor

Currently, we instantiate a view using the template path, e.g.,

    $view = new Piwik_View('Login/templates/login.tpl');

We should create a view factory (and refactor a bit of the code in #700, e.g., cli templates). We should also standardize on a convention of either subdirectories (e.g., templates/mobile/login.tpl) or a prefix (e.g., 'mobile_login.tpl').

@robocoder commented on August 11th 2009 Contributor

Add a FrontController.getViewType hook.

    // default
    $viewType = 'full';

    if (phpCliMode()) {
        $viewType = 'cli';
    } else if (isset($session->viewType)) {
        $viewType = $session->viewType;
    } else {
        // mobile browser detection
        ...
    }
@robocoder commented on August 11th 2009 Contributor

View factory method implemented in #921.

    $view = Piwik_View::factory('login');
@robocoder commented on August 11th 2009 Contributor
@robocoder commented on August 12th 2009 Contributor

Or: !http://mdbf.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30256

Not as extensive as wurfl but smaller footprint (12mb vs 160k). Note Microsoft Public License so cannot be included in Piwik core.

@robocoder commented on November 24th 2009 Contributor

Could this be implemented as a "mobile theme"? (see #5597)

@robocoder commented on February 16th 2010 Contributor

See also #395

@mattab commented on September 17th 2011 Owner

I mark as wont fix since we now have powerful Piwik Mobile app for web analytics reports on the phone, so probably enough. Plus we are trying to move away from flash completely so most phones should be compatible (JS/HTML required of course). For other phones, they can use HTML Reports :)

This Issue was closed on September 17th 2011
Powered by GitHub Issue Mirror