John5269257
Posts: 0
Joined: Mon Jun 17, 2013 11:04 am

removing $.mobile.hashListeningEnabled = false;

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

removing $.mobile.hashListeningEnabled = false;

Hello John,

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

John5269257
Posts: 0
Joined: Mon Jun 17, 2013 11:04 am

removing $.mobile.hashListeningEnabled = false;

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

removing $.mobile.hashListeningEnabled = false;

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

John5269257
Posts: 0
Joined: Mon Jun 17, 2013 11:04 am

removing $.mobile.hashListeningEnabled = false;

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

John5269257
Posts: 0
Joined: Mon Jun 17, 2013 11:04 am

removing $.mobile.hashListeningEnabled = false;

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; 
             } 
         });
Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

removing $.mobile.hashListeningEnabled = false;

Hello John,

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

Return to “Issues”