Discussion Forums  >  Self Hosted Control Panels

Replies: 22    Views: 193

MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
12/06/13 10:42 AM (11 years ago)

Context Menun

Using Self Hosted BT3.0, the context menu does not appear. Set it all up, but it does not show up.. Ideas? Thanks
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
12/06/13 11:07 AM (11 years ago)
I had the same problem. iOS right? I figured possibly it was me lol.. But I guess still a few issues. I've tried it on BT as well and no go. Does it work for you on BT?
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
12/06/13 11:26 AM (11 years ago)
Thanks. IOS, yes. haven't tried it on BT. BT downloaded apps don't compile the plugins... weird....
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
12/06/13 11:41 AM (11 years ago)
yes. try upgrading all of the plugins manually and removing the old. i had the same issue and some bt plugins still have version number 1.5 (from 2.19) although they have been upgraded to be consistent with the 3.0 core bt server
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
12/06/13 05:25 PM (11 years ago)
I just realized that the Context Menu is not in the Menu with Image today. I bet there is some code in the Menu Simple I can copy over to it. I will check it out.
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
12/06/13 07:48 PM (11 years ago)
Found the problem to this in the BT Core 3.0 (ios). 1. Open BT_viewController.m 2. Around line 256, find where the string "contextMenuId" is being assigned to the JSON parameter "contextMenuId". 3. The plugins I checked are saving a JSON parameter called "contextMenuItemId" (notice the extra "Item". 4. Change the JSON parameter in the BT_viewController.m (NOT the NSString name!) to "contextMenuItemId" 5. Do the same thing around line 602-ish Recompile, and look for your new context menu! -Chris
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
12/06/13 07:50 PM (11 years ago)
Its possible that the problem is really in all the plugins, and not the core. Just depends on what the parameter was supposed to be called. I'll send this fix to David, just to make sure he wanted the JSON to be called contextMenuItemId, and not contextMenuId. -Chris
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/07/13 12:10 AM (11 years ago)
Wow, great find. It should be contextMenuItemId and NOT contextMenuId. The control panel uses an HTML form element named: json_contextMenuItemId Note the json_ tells the control panel this is a data point to save, the remaining contextMenuItemId is the property name that gets saved. So @Stobe is right. It's doubtful that ANY plugins have changed this to contextMenuId - the incorrect value. The download server has been updated. In your existing project, if you want to make this quick fix without re-fetching anything...just find and replace ALL occurances of contextMenuId with contextMenuItemId. The NSString names and the JSON property names. Just change them all. That's what the download server now has. The "village" is helping - a ton - it's awesome!!!
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
12/07/13 02:29 AM (11 years ago)
Sweet thanks so much!
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
12/08/13 11:01 AM (11 years ago)
The context menu now shows up however, the menu items/screens won't show up either. Via this post: https://www.buzztouch.com/forum/thread.php?fid=B2041979676E531C67076CB&tid=B2041979676E531C67076CB
 
thegibcoyote
Apple Fan
Profile
Posts: 139
Reg: Feb 01, 2011
Gibraltar
1,390
like
12/08/13 11:45 AM (11 years ago)
I have been baffled by this for a while, although I get the menu icon appearing in plugin menu with image I am not getting anything when I press the icon. menu is not dip laying any ideas would be welcomed !
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
12/08/13 04:16 PM (11 years ago)
I have the context menu working in my simulator right now. Are you compiling with ios 7?
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/08/13 05:39 PM (11 years ago)
I am - It's not working for me.. What's your secret?
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
12/10/13 04:12 AM (11 years ago)
Thanks guys
 
thegibcoyote
Apple Fan
Profile
Posts: 139
Reg: Feb 01, 2011
Gibraltar
1,390
like
12/11/13 02:10 PM (11 years ago)
I still cannot get Context Menu to work. Icon appears in plugin Menu with Image but when I press nothing happens. Any ideas would be welcomed. I am compiling for iOS 6 upwards, and trying it on iOS 7
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
12/11/13 02:47 PM (11 years ago)
Try compiling for ios7
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
01/02/14 03:41 PM (11 years ago)
just curious.. did anyone that was having problems solve the problem? i'm compiling for ios7 (using 3.0 core ios) and it just won't work. tested on my device and simulator. i'm self-hosted .. could that be an issue of some sort. In my debug console I see: returning BT_menu object with itemId and it registers the click on the menu as: showContextMenu Im lost :/
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
01/02/14 04:33 PM (11 years ago)
I'm curious if anyone else following this thread has gotten it working. I have it working perfectly, with no hacks or fixes, etc. If you're still having trouble this weekend @mysps, maybe we can do a screen-share or something? -Chris
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
01/02/14 04:36 PM (11 years ago)
Chris, have you tried it on an iPad? I believe I saw a different forum post yesterday where it had problems on the iPad.
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
01/02/14 05:08 PM (11 years ago)
Unfortunately, iPad is working for me also, lol. If someone wants to paste the JSON from their context menu here, maybe that can help me troubleshoot. It will be in the "BT_menus" section of the BT_config.txt right after the BT_tabs -Chris
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
01/02/14 05:46 PM (11 years ago)
Update: Looks like it works fine in a non-tabbed app, but not in a tabbed app. Sorry! I've been testing in a non-tabbed app. Working on a solution... will update when a fix is ready. -Chris
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
01/03/14 02:20 AM (11 years ago)
Yep Chris! The apps i've tried use the tab bar. Shux
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/19/14 09:55 PM (11 years ago)
Edit:v1. Found out that on my Samsung and on the smaller t-mobile I am not seeing the context menu at all. Same app installed to the Samsung Note, T-Mobile Prism, and an HP touchpad running Android. The phones don't show the context menu, the tablet does, but as such, noted below. ------------------------------------------------------------------------------- Here is what I am finding. BTv3.0 Android 4.0 - Tablet Setup with no Tabs, standard simple menus. Json data looks good and validates. I have 3 items setup in the context menu Camera Setup Information Emergency I get the context menu for Android on the right side. I can click it and it drops down a box that has this in it. (looks nice) Refresh All Data Close Quit App They all work, as suggested(refresh,close, and quit), but that is not what I wanted. Hee hee. Wahhhhh! Huh! What? Json looks great, looks like this { "BT_appConfig":{ "BT_items":[ { "itemId":"JA712235E363F7E2DCE7328A1", "itemType":"BT_app", "buzztouchAppId":"JA712235E363F7E2DCE7328A1", "buzztouchAPIKey":"8723708536EF2327DB4E685", "dataURL":"https://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA712235E363F7E2DCE7328A1&apiKey=8723708536EF2327DB4E685&apiSecret=F4298CA10BCC6EC710B9F1C", "reportToCloudURL":"https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA712235E363F7E2DCE7328A1&apiKey=8723708536EF2327DB4E685&apiSecret=F4298CA10BCC6EC710B9F1C&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]", "registerForPushURL":"https://www.buzztouch.com/api/app/?command=registerForPush&appGuid=JA712235E363F7E2DCE7328A1&apiKey=8723708536EF2327DB4E685&apiSecret=F4298CA10BCC6EC710B9F1C&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]", "lastModified":"Mon, 20 Jan 2014 01:46:01 -0800", "lastPublished":"Sat, 04 Jan 2014 20:04:37 -0800", "name":"Kid Locator 2", "version":"1.0", "currentMode":"Design", "startLocationUpdates":"0", "promptForPushNotifications":"0", "allowRotation":"largeDevicesOnly", "BT_themes":[ { "itemId":"50CEBCE1960C00F2BC16DE4", "itemType":"BT_theme", "backgroundColor":"#FFFFFF" } ], "BT_tabs":[ ], "BT_menus":[ { "itemId":"54E11868C1F758A1C71F9F1", "itemType":"BT_menu", "itemNickname":"InfoAndDisclaimer", "childItems":[ ] } ], "BT_screens":[ { "itemId":"5CEAF026F3D30721BAE063C", "itemType":"BT_screen_menuButtons", "itemNickname":"NEVER LOST", "navBarTitleText":"WELCOME TO - HERE I AM", "navBarBackgroundColor":"#FFFFFF", "navBarStyle":"solid", "contextMenuNickname":"InfoAndDisclaimer", "contextMenuItemId":"54E11868C1F758A1C71F9F1", "buttonLayoutStyle":"horizontalBottom", "buttonLabelLayoutStyle":"below", "preventAllScrolling":"1",....................... ~ ~ more screen stuff here, but not related to context menu ~ .................................................................. ~ ............................................................ { "itemId":"1C8B88CD63FAE935BC5FF57", "itemType":"BT_screen_wordDoc", "itemNickname":"information", "navBarTitleText":"information", "navBarBackgroundColor":"#FFFFFF", "navBarStyle":"solid", "backgroundColor":"#FFFFFF" }, { "itemId":"177D11E1E7898BC1439E402", "itemType":"BT_screen_menuListSimple", "itemNickname":"InfoAndDisclaimer", "navBarTitleText":"INFORMATION", "backgroundColor":"#FFFFFF", "backgroundImageNameSmallDevice":"nonblueframemusic.png", "backgroundImageNameLargeDevice":"nonblueframemusic.png", "backgroundImageScale":"fullScreen", "childItems":[ { "itemId":"21EDEA20D7B4DE47ED26732", "itemType":"BT_menuItem", "loadScreenWithItemId":"1C8B88CD63FAE935BC5FF57", "titleText":"CAMERA SETUP", "rowAccessoryType":"details" }, { "itemId":"621897199E4788AA5F1F289", "itemType":"BT_menuItem", "loadScreenWithItemId":"04CBAA7BCCAF680F0B3B0EC", "titleText":"APPLICATION USAGE" }, { "itemId":"B2EB1BF8EA01C18E28FCA49", "itemType":"BT_menuItem", "loadScreenWithItemId":"4CC4D0E3B987745BB97ABA4", "titleText":"EMERGENCY" } ] }, { "itemId":"04CBAA7BCCAF680F0B3B0EC", "itemType":"BT_screen_wordDoc", "itemNickname":"MomAndDad", "navBarTitleText":"MomAndDad" }, { "itemId":"4CC4D0E3B987745BB97ABA4", "itemType":"Email_image", "itemNickname":"emergency", "navBarTitleText":"emergency" } ] } ] } }
 

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.