Discussion Forums  >  Grunts, Groans, Complaints

Replies: 22    Views: 402

LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
04/14/14 04:45 AM (10 years ago)

Live/Design mode update?

Hi to all Buzztouch Admins. As one of the best functions of the "old" buzztouch, the Live/Design Mode still doesnt work, I would like to know if this is ever going to change or if it died for good? Not working for months now, so just curious if we can count on this coming back or not. An official answer would be very much appreciated. Leon
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/14/14 10:14 AM (10 years ago)
I'm not sure I know about this one. What's the issue exactly?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/14/14 10:16 AM (10 years ago)
It's been working fine for me with the BT v3 code. Mark
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
04/14/14 10:22 AM (10 years ago)
Wrote about it first time here and others seem to have the problem too: https://www.buzztouch.com/forum/thread.php?tid=40F5CB434CF8AF24E8450E5 On v2 I didnt have that problem, but on v3 live mode does not work anymore. You on self hosted Mark? Weird!
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
04/14/14 11:19 AM (10 years ago)
I get the same thing. For example, I have published my most recent app for Android and Apple and the published config.txt is the 'live' one. I make a small change to the home menu, I don't click 'publish changes' and yet the app updates when I refresh the data, both IOS and Android. Tested today.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/14/14 11:25 AM (10 years ago)
Okay - I just confirmed the bug. Here's a fix. Look in the BT_loadConfigDataViewController.m file, around line 178. You should see: //ask the app to parse this config data... [appDelegate.rootApp parseJSONData:[self configData]]; Immediately after that line, add this: //set currentMode status according to the bundled config file NSString *bundledConfigData = @""; if([BT_fileManager doesFileExistInBundle:[self configurationFileName]]){ bundledConfigData = [BT_fileManager readTextFileFromBundleWithEncoding:[self configurationFileName] encodingFlag:-1]; SBJsonParser *parser = [SBJsonParser new]; id jsonData = [parser objectWithString:bundledConfigData]; if (jsonData) { if([[jsonData objectForKey:@"BT_appConfig"] objectForKey:@"BT_items"]){ NSArray *tmpItems = [[jsonData objectForKey:@"BT_appConfig"] objectForKey:@"BT_items"]; if([tmpItems count] < 1){ [BT_debugger showIt:self message:[NSString stringWithFormat:@"the BT_items array is empty?%@", @""]]; }else{ NSDictionary *thisApp = [tmpItems objectAtIndex:0]; if([thisApp objectForKey:@"currentMode"]){ if([[thisApp objectForKey:@"currentMode"] length] > 0){ [appDelegate setCurrentMode:[thisApp objectForKey:@"currentMode"]]; }else{ [appDelegate setCurrentMode:@"design"]; } } } } } } //report to cloud (not all apps do this, dataURL and reportToCloudURL required)... if([[appDelegate.rootApp dataURL] length] > 1 && [[appDelegate.rootApp reportToCloudURL] length] > 1){ [appDelegate reportToCloud]; }
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/14/14 11:28 AM (10 years ago)
Chris is the man! I'm on BT.com, for what it's worth. Mark
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
04/14/14 11:32 AM (10 years ago)
Pretty swift Chris, pretty swift. Btw, I'm on self hosted. Tell me, do these fixes get rolled out to us & if so, how, or do I need to patch my own code for a while? Alan
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/14/14 11:48 AM (10 years ago)
Doesn't matter if you're on self-hosted or not - this is purely contained within the Xcode project. Not sure when David will update the core project to include this fix - I'm guessing it will be after Buzzcon though. Too much going on until then!
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
04/14/14 01:54 PM (10 years ago)
Thx Chris, will test it on my next update! Appreciate it!
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
04/19/14 08:27 AM (10 years ago)
BTW, I just noticed that on BT 3.0, both Android and IOS are affected, my updates go out without me hitting 'publish' on both apps.
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
05/07/14 04:10 PM (9 years ago)
Chris, do you have some code for Android too? Releasing an android app now and would gladly have the Live/Design Mode working here as well :-)
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
05/26/14 02:20 PM (9 years ago)
@Chris1 - THANK YOU for this - I finally have live/design mode correctly for the first time ever
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
06/04/14 01:54 AM (9 years ago)
Where is this file? on self hosted, i cannot find it. BT_loadConfigDataViewController.m
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
06/04/14 04:06 AM (9 years ago)
It's in your Xcode project
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
06/04/14 04:11 AM (9 years ago)
ok thanks, but so this will only work for iOS?
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
06/04/14 04:32 AM (9 years ago)
Correct and it's not really working now for some reason. I started a thread awhile ago and I haven't found a fix yet. I have a new app with this fix and my design changes show up in the live app Dave
 
NorfolkAndGood
Aspiring developer
Profile
Posts: 41
Reg: Jul 17, 2013
Cirencester
410
like
06/12/14 01:49 AM (9 years ago)
Is there a fix to this yet please? I have applied the code modification chris1 has produced, but it has no effect. I am using the NAD advanced quiz and anytime I make a change it becomes immediately available to the live app even though I have not published the change. "Live" is set in the bundled config file. Can anyone help please.
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/22/14 03:15 AM (9 years ago)
Did you ever see a fix for this Norfolk?
 
NorfolkAndGood
Aspiring developer
Profile
Posts: 41
Reg: Jul 17, 2013
Cirencester
410
like
06/22/14 03:20 AM (9 years ago)
Sorry, no answer to this one yet.
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
06/22/14 06:31 AM (9 years ago)
Haven't found a fix yet. There was a big announcement today about an all new Buzztouch though. Maybe the fix is coming with the new Buzztouch Dave
 
RonBo
buzztouch Evangelist
Profile
Posts: 167
Reg: Feb 26, 2012
Raleigh, NC
5,220
like
07/08/14 01:31 PM (9 years ago)
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
07/08/14 02:10 PM (9 years ago)
I did try it. Published an update. The first few new devices registered live and push went out ok. Now I'm seeing devices register in design mode. Don't know why. Dave
 

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.