Page 1 of 1

removing $.mobile.hashListeningEnabled = false;

Posted: Fri Jan 08, 2016 5:26 pm
by John5269257

Hi
Strangely, my app works on ios9 without the $.mobile.hashListeningEnabled = false; fix that appery adds to the homerpage. In fact the fix breaks it. I'm currently commenting it out in the source.

Not a big deal, but are there any plans to make this switchable without editing source?

Thanks
John


removing $.mobile.hashListeningEnabled = false;

Posted: Tue Jan 12, 2016 7:27 am
by Alena Prykhodko

Hello John,

Seems this is problem of JQM: https://github.com/jquery/jquery-mobi...


removing $.mobile.hashListeningEnabled = false;

Posted: Wed Jan 20, 2016 2:11 pm
by John5269257

Hi Alena
Yes, its a JQM problem, and it looks like Appery is adding a fix into generated home pages that sets $.mobile.hashListeningEnabled = false;

My app works without the fix above , and breaks with the fix, so I'm editing source to remove the fix every time I publish, then removing the source edit to allow me to update the app through the UI. This is a bit of a pain, and I wondered if there is any other way of removing the fix.

Makes sense?
John


removing $.mobile.hashListeningEnabled = false;

Posted: Tue Jan 26, 2016 11:29 am
by Alena Prykhodko

Hello John,

Please share (http://devcenter.appery.io/documentat...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and provide us with the following information:

1) App name
2) Detailed steps to reproduce the issue


removing $.mobile.hashListeningEnabled = false;

Posted: Fri Sep 02, 2016 10:09 am
by John5269257

Hi
This problem is still an issue, and serious now I have to build a real ios app.

I need to be able to remove the fix that appery adds to the homepage:
$.mobile.hashListeningEnabled = false

If I comment out this line the web app works fine, but building an app fails because I've edited the source.

A fix would be to have the appery home page call an external javascript library before it loads jquerymobile, and move the inline code from the homepage to the library.

To clarify, this code added by Appery into the home page:

I need to remove $.mobile.hashListeningEnabled = false; but if i do so I change the source of the app so it won't build.

If it was in an external library then I could change it without editing source, but it needs to be called before jquery mobile, and I can't specify library load order.

If I could specify library load order, or if appery added a call to a specific editable library before calling jquery mobile, that would fix it.

Are there any other options?

Thanks
John


removing $.mobile.hashListeningEnabled = false;

Posted: Fri Sep 02, 2016 10:15 am
by John5269257

Source got removed.
This is the code generated in the home page that I need to be able to change:

Code: Select all

                 $(document).bind("mobileinit", function() 
         { 
             if (navigator.userAgent.toLowerCase().indexOf("android") != -1) 
             { 
                 $.mobile.defaultPageTransition = 'none'; 
                 $.mobile.defaultDialogTransition = 'none'; 
             } 
             else if (navigator.userAgent.toLowerCase().indexOf("msie") != -1) 
             { 
                 $.mobile.allowCrossDomainPages = true; 
                 $.support.cors = true; 
             } 
             else if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g)) 
             { 
                 $.mobile.hashListeningEnabled = false; 
             } 
         });

removing $.mobile.hashListeningEnabled = false;

Posted: Tue Sep 06, 2016 7:50 am
by Evgene Karachevtsev

Hello John,

Could you please share your app with support and tell us its name?