Discussion Forums  >  WebViews and HTML for Mobile

Replies: 6    Views: 145

HHI Golf Guy
Code is Art
Profile
Posts: 10
Reg: Jun 27, 2012
Bluffton
3,600
07/16/12 12:47 AM (13 years ago)

Geolocation and Custom JQuery Mobile Pages

I'm using jquery-ui-map to get the user location and then plot the driving directions to a fixed destination. Everything works great in the browser, but it doesn't work in the app. I'm still new to learning apps and coding, but my best guess is I need to add some geolocation permissions and code to the BT_screen_customHTML.java file. Is it possible to use the same code from the BT_screen_map.java since this is all part of the same package? Or do I have to code from scratch since these custom pages are outside the standard BT pages? I'm thinking I may need to move away from BT and use PhoneGap instead, unless someone here can point me in the right direction. Thanks for your assistance.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/16/12 05:14 AM (13 years ago)
, but my best guess is I need to add some geolocation permissions and code to the BT_screen_customHTML.java file. Don't think that's necessary. Fred
 
HHI Golf Guy
Code is Art
Profile
Posts: 10
Reg: Jun 27, 2012
Bluffton
3,600
like
07/16/12 09:12 AM (13 years ago)
Actually, the way my project is currently set up I think my statement was correct. I have my custom HTML files in the assets folder, but in my BT control panel I have not added those screens. Because of that I'm assuming my custom pages are not yet "wrapped" in the BT code - hence the geolocation fails. Once I add those screens in the control panel I think the geolocation features will work.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/16/12 09:37 AM (13 years ago)
I have my custom HTML files in the assets folder, but in my BT control panel I have not added those screens. You can add all you wish to the assets folder, but until you have a screen that uses the HTML Doc nothing will happen. Your original question was do you need to add code to the BT_screen_customHTML.java file. Fred
 
HHI Golf Guy
Code is Art
Profile
Posts: 10
Reg: Jun 27, 2012
Bluffton
3,600
like
07/16/12 01:59 PM (13 years ago)
That's where I was going - I needed the BuzzTouch console to also have the HTML Docs set up so BT "knew" what pages were in the app. BT has taught me enough so that I'm going to work with PhoneGap to continue my app development. Using PhoneGap I was able to get a smaller version of my app to perform all of the map and geolocation tasks. But I'll still use BT and the resources on this site as a training tool. Without BT I would not have understood the app development process.
 
SuperScripters
Code is Art
Profile
Posts: 21
Reg: Feb 08, 2011
location unknow...
2,560
like
07/18/12 04:52 PM (13 years ago)
hi HHI golf guy, BT is far better than phonegap in user-experience. i mean if you really want to give a very native looking web app, BT would be best option. Anyways, Can you please put your map live so that i can see whats going on. i'm using jquery maps too it works for me great on BT and regular browser.
 
HHI Golf Guy
Code is Art
Profile
Posts: 10
Reg: Jun 27, 2012
Bluffton
3,600
like
07/18/12 10:18 PM (13 years ago)
My app is nearly complete using PhoneGap and JQuery Mobile. All of the actual coding and functions are done and everything works great. The only issue I have is with a screen that grabs our vacation rental search and listings URL and it looks like there is a Javascript conflict. That's probably because I have not upgraded our rental listings system yet. Our real estate listings system has been upgraded, and that works perfect within the app. As I said, Buzztouch has been invaluable in helping me understand the app development process and how everything works. I learned a lot by downloading the package and studying the files. I'll probably do the same thing when I develop the iOS app - after I go out and spend some money on a Mac Mini so I can compile the thing. Stupid proprietary Apple :( What do you mean by "put your map live"? BTA, I did get the JQuery maps working fine in my BT project. The only thing that did not work was the geolocation services - even when I turned them on in the control panel.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.