Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 14    Views: 134

othmane
Apple Fan
Profile
Posts: 105
Reg: Feb 08, 2012
Casablanca
1,050
02/13/14 04:43 PM (11 years ago)

Enable automatic refresh on BT 3.0

Hi, I want to enable the auto refresh on an ios app. I replaced in the appdelegate.m the [modifiedAlert show] by [self downloadAppData] but it doesn't work. Othmane
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/13/14 04:56 PM (11 years ago)
Thomas (Annandale Apps) posted a workaround for this about a year ago, but I can't seem to find it. You might ask him directly. Cheers! -- Smug
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
02/13/14 05:14 PM (11 years ago)
@Smug What a year ago suffice? The last time I checked v3 works differently in regards to automatic refresh. I've compared the code from the other two working versions and I was too tired months ago to figure it out. :(
 
othmane
Apple Fan
Profile
Posts: 105
Reg: Feb 08, 2012
Casablanca
1,050
like
02/13/14 05:47 PM (11 years ago)
@Smug I checked the post of Thomas about auto refresh http://www.buzztouch.com/files/howtos/AutomaticRefresh.pdf but it's only for v1.5 et v2. Regards
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/13/14 08:28 PM (11 years ago)
But the concept applies regardless… the only difference is the name of the call has changed from 'downloadAppData' to 'refreshAppData'... Otherwise not that much has changed… the methods he describes are still in your xxx_appDelegate.m file, the same procedures apply. "If" you want your app to automatically refresh 'when needed' then continue to follow Thomas' tutorial… just use your eyes rather than the line numbers… or comment out that section and just put '[self refreshAppData];' where the other method used to be… that will *always* refresh it on startup. Cheers! -- Smug
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
02/13/14 09:57 PM (11 years ago)
Smug -- do ya ever sleep?! I know, I know ... Time zones and all ... Still !!!
 
othmane
Apple Fan
Profile
Posts: 105
Reg: Feb 08, 2012
Casablanca
1,050
like
02/14/14 05:50 PM (11 years ago)
Thank you Smug. It works now
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
05/10/14 11:21 AM (11 years ago)
Hi guys, The post was made a while ago. I'll try to update it soon. Thanks Smug
 
RonBo
buzztouch Evangelist
Profile
Posts: 167
Reg: Feb 26, 2012
Raleigh, NC
5,220
like
06/16/14 06:31 PM (11 years ago)
Does anyone know if using this for automatic updates, overrides the Design/Live mode? // [modifiedAlert show]; // next line enables auto-refresh of data url content [self refreshAppData]; I have an BT 3.0 IOS app live in the AppStore, and am 100% ;sure it was submitted in Live Mode. However, ever change I do, is reflected without hitting Publish!!! Others have noticed this, but I wonder if the [self refreshAppData] is overriding the Deisgn Mode - hit Publish before changes are seen by Live Mode instances? Any help would be appreciated.
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
06/16/14 06:41 PM (11 years ago)
Automatic refresh won't be contradicting with the Live/Design mode. I can guarantee that. It's because the auto refresh just is an alternative to the user prompt. But I agree Live/Design mode is dodgy. I must admit that when I did use it, it also didn't work. What I have to do is place the config.txt file on my server before I can start editing.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/16/14 06:50 PM (11 years ago)
While snooping through my BT Self Hosted Database yesterday, I noticed my apps have two 'modes'... 'Debug' and "NULL". I suspect that the code to update this will be the issue for 'Live/Debug' mode. That being said, Thomas is right on the money. Don't change the way 'you' do things, because things don't stay broken forever, and eventually when it's all fixed and working, you'll want things done as designed. Cheers! -- Smug
 
RonBo
buzztouch Evangelist
Profile
Posts: 167
Reg: Feb 26, 2012
Raleigh, NC
5,220
like
06/16/14 06:52 PM (11 years ago)
I did see this just now from GoNorthWest (http://www.buzztouch.com/forum/thread.php?tid=C0C090AC5732456813B6C6A&fid=06DB0BCB08E3333&sortColumn=FT.id&sortUpDown=&currentPage=2) who said that you have to hit Publish at least once, before Live mode works... See his update from: 01/09/14 10:16 AM Very strange... Thanks for checking on the Automatic update setting, was hoping for an easy fix or explanation.
 
RonBo
buzztouch Evangelist
Profile
Posts: 167
Reg: Feb 26, 2012
Raleigh, NC
5,220
like
06/16/14 07:42 PM (11 years ago)
I did see this just now from GoNorthWest (http://www.buzztouch.com/forum/thread.php?tid=C0C090AC5732456813B6C6A&fid=06DB0BCB08E3333&sortColumn=FT.id&sortUpDown=&currentPage=2) who said that you have to hit Publish at least once, before Live mode works... See his update from: 01/09/14 10:16 AM Very strange... Thanks for checking on the Automatic update setting, was hoping for an easy fix or explanation.
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
06/16/14 07:48 PM (11 years ago)
By refreshing the page, you are reposting. Nothing to worry about, but just beware for next time.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
06/16/14 10:47 PM (11 years ago)
The old trick of putting your production config file onto another server will still work. Just be sure to point the link at that re-hosted config file. When you make enough significant updates for Production usage, then copy your BuzzTouch-hosted config file over to the production config file (onto that other server). -- Niraj
 

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.