Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 24    Views: 87

Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
08/15/14 07:46 PM (10 years ago)

Missing Plugin

Argh. Tested my App for a month. Well, obviously mostly the Android version. Submitted it to iTunes Connect. Waited the (average) 5 days. My App is Menu Simple and Location Map. They tested it. Got all the way thru the 4 menus, saw the marker pins on the map... Taped on the marker pin, the callout bubble came up... tapped on the "i in the circle" and got a "Plugin Not Found error". And of course, I did just now, as well, on my iPhone and on Simulator. Drat. I never tested it that far! But then, I have another version on my iPhone 5S, not submitted, created a month earlier, that I just tested, and does not throw PlugIn Not Found Error on "i in circle". I wonder what I did, where?!? I'm wondering if that was the thing that had to be different for Android, and somehow it got mixed up? Android works fine. On to debugging.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/15/14 08:01 PM (10 years ago)
never mind.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/15/14 08:02 PM (10 years ago)
never mind.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/15/14 08:06 PM (10 years ago)
never mind.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/15/14 08:09 PM (10 years ago)
Self Hosted 3.0.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/15/14 08:25 PM (10 years ago)
The version that works was exported out of Self Hosted Control Panel on June 7 maybe earlier... the ones in error, exported out of Self Hosted Control Panel on August 7.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/15/14 08:30 PM (10 years ago)
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/15/14 08:35 PM (10 years ago)
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/15/14 08:37 PM (10 years ago)
Went to Control Panel > Admin > Manage Plug Ins > Location Map and found an update 1.11 !! Just downloaded it. I hope I don't have to export new binary!
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/15/14 08:41 PM (10 years ago)
In the readme, { "itemId":"loc_1", "itemType":"BT_locationItem", "title":"Cool Restaurant", "subTitle":"1234 Elm Street Anytown CA", "latitude":"38.4323", "longitude":"-121.2345" }, It doesn't have "loadScreenWithItemId":"showDirections". But if I take that out, there no "i in a circle" to tap.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/15/14 09:09 PM (10 years ago)
I updated the plugin. Prepared and downloaded new project. Opened in Xcode > Run Simulator - same "Plug In Not Found" (when tapping "i in circle").
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/15/14 09:10 PM (10 years ago)
So the easiest fix, is to just take out "loadScreenWithItemId":"showDirections" ?? But it worked with my earlier project, exported in June or May.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/15/14 09:47 PM (10 years ago)
Saturday morning, I am going to load up Xcode with the version of that project that does work, and look for differences in the bt_screen_map.m Might there be others?
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
08/16/14 01:38 AM (10 years ago)
I have a suspicion that the plugin itself is fine, but json generated for this plugin from the control panel is not 100%. Just a suspicion. I know that on an ios app I am working on that I generated 10 pins and 8 of them would not show the 'i' button and hence would not offer driving directions. It may have something to do if I do them all in one go or not, I'm not sure. My work-around was to extract the relevant map json from the config.txt, edit it so all entries were to the same structure, make a text file out of it, save as an external document, then load that into my app as an external url. Hope that helps, cheers, Alan
 
rburns50
buzztouch Evangelist
Profile
Posts: 168
Reg: May 12, 2014
Bilston - Engla...
9,130
like
08/16/14 02:26 AM (10 years ago)
I did exactly what AlanMac describes in one of my Apps just yesterday actually and it works perfectly on Android, have 40 pins all with Directions callout with no issues at all. Example of JSON used: { "itemId": "1AD15A3B80DE66048F978F8", "itemType": "BT_locationItem", "loadScreenWithItemId": "showDirections", "title": "Leeds Golf Centre", "subTitle": "Wike Ridge Lane, LS17 9JW", "latitude": "53.8730483", "longitude": "-1.494127", "calloutTapChoice": "showDirections", "pinColor": "green" },
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/16/14 08:53 AM (10 years ago)
But, I'm on iOS 7. I did add "calloutTapChoice": "showDirections", I still get the missing plugin error screen, but the modal for Driving Directions now pops up. { "itemId":"SCo0Ci0Ca1L0", "itemType":"BT_mapLocation", "latitude":"51.5067822", "longitude":"-0.2660702", "title":"Blarney Stone", "subTitle":"Blarney Stone", "loadScreenWithItemId":"showDirections", "calloutTapChoice":"showDirections", "pinColor":"red" } http://www.10kapps.com/errDD.png
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/16/14 09:20 AM (10 years ago)
If I take out "loadScreenWithItemId":"showDirections", Then, no plug-in missing error. But Android needs it. At least with Android, "calloutTapChoice":"showDirections" doesn't produce an error.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/16/14 09:38 AM (10 years ago)
OK... I have a PHP script that creates the JSON. The iOS script requires "calloutTapChoice":"showDirections", but not "loadScreenWithItemId":"showDirections", <-- produces error screen "Plug In Not Loaded" The Android script requires "loadScreenWithItemId":"showDirections", Ignores "calloutTapChoice":"showDirections",
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
08/16/14 12:35 PM (10 years ago)
So are you saying that on ios, if you have both "loadscreenWithItemId":"showDirections", "calloutTapChoice":"showDirections", in your json that you get an error? Odd, because I do not.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/16/14 12:46 PM (10 years ago)
Yes. This image http://www.10kapps.com/errDD.png shows the error when both are in JSON: "loadscreenWithItemId":"showDirections", "calloutTapChoice":"showDirections", http://10kapps.com/noerrDD.png shows no error after removing "loadscreenWithItemId":"showDirections" But you must have "calloutTapChoice":"showDirections" or there's no action when tapping the red marker pin. Before the PlugIn itself was changed (per the version history), only "loadscreenWithItemId":"showDirections" was good for both Android and iOS 7. Also, the modal menu on iPad now looks different from iPhone: http://www.10kapps.com/noerrDDip.png
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/16/14 12:50 PM (10 years ago)
Self Hosted Control Panel, 3.0, Updated Location Map Plugin v1.11 7/12/2014 (Susan @ Buzztouch)Corrections to the iOS .m file from Smug Wimp. Updated Readme for 3.0.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/16/14 12:53 PM (10 years ago)
The other thing that's frustrating, is that the Read Me sample JSON has neither statement: "itemId":"1111", "itemType":"BT_screen_map", "itemNickname":"Location Map", "navBarTitleText":"Monterey Spots", "childItems":[ { "itemId":"loc_1", "itemType":"BT_locationItem", "title":"Cool Restaurant", "subTitle":"1234 Elm Street Anytown CA", "latitude":"38.4323", "longitude":"-121.2345" }, It must have at one point, as I have had driving directions in my App for 2+ years. How else would I have know, if it wasn't in the Read Me?
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
08/16/14 01:36 PM (10 years ago)
Check out the following thread, it may help: http://www.buzztouch.com/forum/thread.php?tid=927A8FE5673AEAD81FF064B&command=isSearching&currentPage=1&topicTitle=work-around&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= I based the map json in my current app on this and I do not have any issues on Android or IOS, so there must be something in there that will work for you.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/16/14 01:41 PM (10 years ago)
But they changed the .m file in July. That thread is from June. Are you using vers 1.11 of the Location Map Plugin? That is the current vers. as of July 7.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
08/16/14 02:00 PM (10 years ago)
Yes
 

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.