$.eventStart not firing on phonegap android

32 views
Skip to first unread message

Mario Karagiorgas

unread,
Jul 22, 2014, 9:52:19 AM7/22/14
to chocolat...@googlegroups.com
Hello,

Kudos for a practical minimalist mobile framework.

The framework's tap start event works great on desktop chrome, ie * others. But when installed as a phonegap application, it does not fire whereas singletap does...(tested on 2 android 4.0x devices phone, tablet)

Any help?

Thanks
Mario
Message has been deleted
Message has been deleted

Robert Biggs

unread,
Aug 1, 2014, 10:20:50 AM8/1/14
to chocolat...@googlegroups.com
In most cases you'd actually want to use the "singletap" event instead as this allows the user to scrolling on content before firing an event. If your back buttons are working as expected in navigation lists, then $.eventStart is working. Otherwise there is a problem and I will need some information from you to see what is blocking this.

Robert Biggs

unread,
Aug 1, 2014, 10:23:47 AM8/1/14
to chocolat...@googlegroups.com
By the way, could you please let me know what version of Android and on which browser, mobile Chrome or native browser, you're seeing $.eventStart not working?


On Tuesday, July 22, 2014 6:52:19 AM UTC-7, Mario Karagiorgas wrote:

Mario Karagiorgas

unread,
Aug 4, 2014, 2:32:53 PM8/4/14
to chocolat...@googlegroups.com
Hi Robert,

Answers to your questions: 

Tested on 2 Android versions 4.1.1, kernel 3.0.8+ or Kernel 3.4.0
Standard Android Browser (not chrome): The web view used by PhoneGap is the same web view used by the native operating system. On Android, this is android.webkit.WebViewBy Phonegap

I confirmed that eventStart does not fire on the stock browser of the device in contrast to the chrome mobile engine that fires it ok.

Many Thanks
Mario

--
You received this message because you are subscribed to a topic in the Google Groups "ChocolateChip-UI" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chocolatechip-ui/r5YzgfeNQJg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chocolatechip-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robert Biggs

unread,
Aug 6, 2014, 12:27:22 AM8/6/14
to chocolat...@googlegroups.com
Hey Mario,

I have a Gallaxy Nexus 5 running Android 4.2.2.
The following code is working as expected for me:

      $('#showPopover1').on($.eventStart, function() {
        var trigger = this;
        $.UIPopover({
          title: 'Fruits',
          trigger: trigger,
          content: popover1Content,
          callback: function() {
            popoverEventHandler('fruitsPopover');
          }
        });
      });

I"ve also tried a number of other use cases with $.evenStart on the native browser. That said, the native browser does have a lot of nasty even bugs. Could you maybe share a snippet of your code so I can see what you are having problems with?
To unsubscribe from this group and all its topics, send an email to chocolatechip-ui+unsubscribe@googlegroups.com.

Mario Karagiorgas

unread,
Aug 6, 2014, 3:57:35 AM8/6/14
to chocolat...@googlegroups.com
Robert,

The following 2 snippets do not fire on the 4.1.1 native browser but everywhere else they fire ok. 

        var backToMainButton = $('#backToMain');
        backToMainButton.on($.eventStart, function () {
            $.UIGoBackToArticle('#main');
        });

//-- other example not firing on native

        $('#liveVideoDiv').on($.eventStart, function () {
            that.playLiveEvent();
        });

vs
singletap which fires fine.

        var backToMainButton = $('#backToMain');
        backToMainButton.on('singletap', function () {
            $.UIGoBackToArticle('#main')
        });

Thanks


To unsubscribe from this group and all its topics, send an email to chocolatechip-...@googlegroups.com.

Robert Biggs

unread,
Aug 12, 2014, 6:12:52 PM8/12/14
to chocolat...@googlegroups.com
I've tried to reproduce your problem here, but the oldest Android system version I have is 4.2.2. On that with a Google Galaxy 5 the native browser executes $.eventStart in all instances as expected.

If you want, I'd be happy to have a Skype conference to see if I can resolve your problem. If you're on Skype, let me know. My handle is: rombiggs

Robert Biggs

unread,
Aug 12, 2014, 6:34:35 PM8/12/14
to chocolat...@googlegroups.com
So, I just managed to get hold of a friends Galaxy 5 running Android 4.1.1. On the native browser the following code works as expected:

    $(function() {
      $("#goToLast").on($.eventStart, function() {
      alert('$.eventStart');
         $.UIGoToArticle("#article3");
       });
       $('#backToMain').on($.eventStart, function() {
        alert('$.eventStart works!');
         $.UIGoBackToArticle('#main');
       });
    });
Reply all
Reply to author
Forward
0 new messages