Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartGWT.Mobile & PhoneGap - DateItem / TimeItem / DateTimeItem not working

    This can be demonstrated by compiling the showcase into an PhoneGap iOS app.

    When it is running select "Forms" -> "Pickers".

    The "Due Date", "Arrival Time" and "Datetime" fields do not bring up a selector when they are touched... unlike when running in a web browser.

    Thank-you very much for any assistance you can offer.

    Versions:

    Code:
    smartgwt-mobile-1.0d_2015-02-02
    GWT 2.6.1
    PhoneGap v 3.6.0-0.21.19
    iOS 8.1.1  iPad
    (or running the iOS simulator)
    Build instructions:

    Changed 'build.xml' gwtc argument to:

    Code:
    <arg value="com.smartgwt.mobile.showcase.ShowcaseIOSApp"/>

    Added the following lines to ‘index.html’ (following the instructions):

    Code:
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <meta name="format-detection" content="telephone=no”>
    <script type="text/javascript" charset="UTF-8" language="JavaScript" src="phonegap.js"></script>
    
    <script type="text/javascript" language="JavaScript">
    document.addEventListener("deviceready", function onDeviceReady() {
        window.isDeviceReady = true;
        document.removeEventListener("deviceready", onDeviceReady, false);
    }, false);
    </script>
    Build commands:

    Code:
    ant gwtc
    
    phonegap create --id com.isomorphic.mobile.apps.Showcase --name "ISC Showcase" project_folder
    
    rm -r project_folder/www/*
    
    cp -r war/* project_folder/www/
    
    cd project_folder
    
    phonegap build ios

    #2
    We'll take a look at this, however, please note the updated advice (in the FAQ and in the smartgwt.mobile user guide) on when to use smartgwt.mobile vs just full SmartGWT - if your use case doesn't fit the description, you should just be using full SmartGWT.

    Comment


      #3
      This has been worked around for tomorrow's nightly build.

      The problem was a new native bug in iOS 7+ Mobile Safari where applying background:transparent to a native date, time, or datetime-local <input> causes the <input> to have no natural dimensions, such that events never fire.

      Comment


        #4
        That fixed it, thank-you very much. :)

        We have already used SmartGWT.Mobile to construct a versatile application, that works well on phones and tablets.

        Based on your discouragement should I be worried that the project might be deprecated and it will never see an official 1.0 release? … or support will eventually be discontinued?

        Comment


          #5
          It's got a reduced role as described. It is not deprecated.

          Comment

          Working...
          X