Chris from Stafford
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
11/27/14 01:41 PM (9 years ago)

Maps issue

I have maps running fine in my latest app with iOS - driving directions load ok etc However with my android app the maps work ok but there is no driving directions option or map buttons
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
11/28/14 06:45 AM (9 years ago)
Did you follow @GoNorthWest videos? You testing on Android emulator or a device? LA
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
11/28/14 10:48 AM (9 years ago)
Testing on a device. It all works fine with iOS and driving directions works. On android device maps load fine as they should but no driving directions option shows. My first android app I have it working as it should. I can't find what could be wrong in my latest app
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
11/28/14 11:40 AM (9 years ago)
Perhaps the 3-dot android side menu is the trick to getting to the driving directions?
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
11/28/14 12:13 PM (9 years ago)
On my first android app I used maps with driving directions and when you press the pointer you have two options below the address - ok & driving directions. In the two apps I am developing at the moment I just have ok under the address
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/28/14 07:27 PM (9 years ago)
There seems to be a system wide issue with driving directions on Android. For some reason they're not working for multiple people. I'll see if I can get Buzztouch engaged to look into this. Mark
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
11/29/14 04:00 AM (9 years ago)
Thanks Mark That will save me a lot of messing to try to fix the issue I will hold back on publishing my two apps on android until it's hopefully fixed Chris
 
rburns50
buzztouch Evangelist
Profile
Posts: 168
Reg: May 12, 2014
Bilston - Engla...
9,130
like
11/30/14 04:57 AM (9 years ago)
There is a disconnect with the control panel and the maps themselves on Android. I have multiple apps using without issue. I create the app as usual, download it into Eclipse - in the btconfig file I find all the relevant json for the maps, validate it and paste it into a txt file. I upload the file and then in btcontrol panel for the map, reference the txt file in the load from URL. Example entry from the txt file looks like: { "childItems":[ { "itemId":"F4038B88EF89BDCD1B84D53", "itemType":"BT_locationItem", "loadScreenWithItemId": "showDirections", "title":"Fusion Gym", "subTitle":"Waddensbrook Lane, Wednesfield", "latitude":"52.5980591", "longitude":"-2.0703794", "calloutTapChoice":"showDirections" } ] } I have to add the showDirections element as you will find this doesnt exist in the btconfig file.
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
11/30/14 08:29 AM (9 years ago)
ShowDirections is in my btconfig file just as your example I think the fault is definitely with buzz touch
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
11/30/14 08:44 AM (9 years ago)
As noted by SmugWimp: By the way, I'm not sure if "loadScreenWithItemId": "showDirections" is going to work for you. The recent versions of BT_screen_map use the json key 'callOutTapChoice' to determine if it's going to load another BT screen, or use external driving directions. "callOutTapChoice": "showDirections" is the correct key/value pair for external directions. For 'loadNextScreen' you would need to populate either loadScreenWithItemId, loadScreenByNickname, or loadScreenObject. https://www.buzztouch.com/forum/thread.php?tid=3AA00A1C7DAAF8D2CCD7D7A&currentPage=3
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
11/30/14 08:52 AM (9 years ago)
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
11/30/14 09:28 AM (9 years ago)
if I change callOutTapChoice to loadScreenWithItemId on the btconfig file it works as it should but as soon as I edit something on my app it reverts back to callOutTapChoice So I guess location map can't be used with android any more unless anyone knows a fix or buzz touch can be fixed.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
11/30/14 10:11 AM (9 years ago)
It won't work if you change the BT_Config file and then afterwards change the Control Panel. The Control Panel will override the file. Either stick with Control Panel or use a standalone JSON file for the map plugin. Most savvy folks (SmugWimp and AlanMac) use the standalone map file. -- Niraj
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
11/30/14 11:45 AM (9 years ago)
Not sure how to use a stand alone json file as I'm not too technical It seems there must have been an update to the plug-in that causes this issue as it used to work Can the plug in not be fixed or is it a control panel issue?
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
11/30/14 04:06 PM (9 years ago)
It is not tech-heavy to use a standalone JSON file. Use this opportunity to add another option into your toolbox :-) 1. For the Location Map settings, copy the Child Items from the BT_config.txt file into a new file 2. Paste those map locations into a new standalone JSON file using the syntax and structure shown below. You will have to add a line before and after your copy-pasted JSON block. It's easy, just carefully compare the example below with your standalone JSON file. Slowly does it nicely :-) Be sure to have the entries for calloutTapChoice in the Standalone JSON file as appropriate for the relevant map locations. 3. Upload that JSON file into the Files Section of your App's Control Panel. 4. Copy the URL of that uploaded JSON file. 5. Within the Location Map screen on the Control Panel, specify that JSON File's URL as the DataURL within the Data URL section. 6. Eventually you want to delete the child Items (the individual locations) from the Location Map screen. But only after testing the standalone JSON file! 7. For changes to existing Map Locations or for new Map Locations, remember to make changes in that Standalone JSON File and to re-upload the revised version into the Files Section of the App's Control Panel. To make the mobile app auto-refresh, change a dummy not-used screen on the Control Panel. That will cause the app's time stamp to be older than the Control Panel's timestamp. Upon launch of the mobile app, the code will - Recognize the timestamp differences - Clear the cache of the BT_config.txt, Standalone JSON file, downloaded images and docs - Download and cache the revised BT_config.txt - Upon viewing of the Map screen, it will then download and cache the Standalone JSON file -- Niraj ------------- FROM THE LOCATION MAP DESCRIPTION PAGE ---------- the standalone JSON file has this structure and syntax.. Loading the dataURL in your browser would produce output like this.... { "childItems":[ { "itemId":"D441703507867F328A084DF", "itemType":"BT_mapLocation", "latitude":"36.600723", "longitude":"-121.8928338", "title":"Location 1", "subTitle":"234 Del Monte Blvd Monterey CA 93940" }, { "itemId":"419993F0FEC3312C797C91E", "itemType":"BT_mapLocation", "latitude":"36.615763", "longitude":"-121.904234", "title":"Location 2", "subTitle":"801 Lighthouse Ave Monterey CA 93940" }, { "itemId":"11F25D4F6120F19E7F4B220", "itemType":"BT_mapLocation", "latitude":"36.5977439", "longitude":"-121.8949035", "title":"Location 3", "subTitle":"823 Alvarado St Monterey CA 93940" } ] } http://www.buzztouch.com/plugins/plugin.php?pid=9E669EFC6F081CA47A33877
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/30/14 04:15 PM (9 years ago)
I've reached out to the Buzztouch powers-that-be to see if this can be fixed on the BT side. Mark
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
12/01/14 12:52 PM (9 years ago)
That would be the best solution as I have 47 screens to edit
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/02/14 12:26 AM (9 years ago)
David Book has informed me this is fixed, and the new code has been uploaded to the Buzztouch server. If you download a new package, you should have the fixes and all will be well! The fix is good for self-hosted or buzztouch.com control panels. Enjoy! Mark
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
12/02/14 02:50 AM (9 years ago)
Great news will download the new package now Thanks again
 

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.