Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 129

Cakebit
Code is Art
Profile
Posts: 501
Reg: Dec 15, 2010
In your local b...
16,510
03/24/14 11:49 AM (10 years ago)

Buzztouch 3.0 Automatic Refresh (iOS)

Most of the time I program my apps to automatically refresh. Automatic refreshing is when your app refreshes it's data from Buzztouch.com without prompting your user to update the app, It will just happen (like magic)! This is especially useful if you do not want users to be using an outdated version of your app! This modification to your app source code will disable the prompt "This app's content has changed, would you like to refresh?" and instead your app will automatically refresh whenever any update is available. You can see images of the code at http://buzztouch.me/refresh. To update your project: 1. Select this file: - "yourAppNameHere_appDelegate.m" (the file will have your app name (eg. buzztouchtips) instead of "yourAppNameHere") This file will be in the BT_Config folder. 2. Scroll down to line 414 and replace [modifiedAlert show]; with this snippet of code: [self refreshAppData]; It is that easy! You just enabled your app to automatically refresh in BT 3.0. If you'd like to keep a copy, you can download a PDF of this post: http://buzztouch.me/wp-content/uploads/2014/03/Automatic_Refresh.pdf
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/24/14 12:54 PM (10 years ago)
Sweet mod Cakebit. This will come in handy :)
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
03/24/14 02:36 PM (10 years ago)
Cakebit, you're a hero. Cheers, David http://btmods.com/chat
 
shenry
Aspiring developer
Profile
Posts: 469
Reg: Jan 10, 2012
Orange County, ...
13,390
like
03/24/14 03:22 PM (10 years ago)
Nice tip, Thanks.
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
03/24/14 04:31 PM (10 years ago)
Cakebit you ROCK!! Been waiting for this. Great job and THANK YOU! Dave
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
03/24/14 08:17 PM (10 years ago)
Sounds great. Two novice questions: 1) Has anyone submitted and had an app pass Apple approval with this? 2) What happens if unable to establish or complete download due to connectivity? - is this handled by standard BT code? Thanks
 
Cakebit
Code is Art
Profile
Posts: 501
Reg: Dec 15, 2010
In your local b...
16,510
like
03/24/14 09:34 PM (10 years ago)
Thanks everyone! :D @MrDavid: You already know I don my cape and fly around the city as the well known super hero Maximus Cakely - defending liberty, repossessing stolen groceries and ingesting left-over cupcakes at cooperate offices. @NCbuzz, I have submitted several apps that have been accepted with this feature enabled. If the app does not receive internet connection nothing happens. The app will continue to operate from the cache. No extra coding required, the functionality is already built in.
 

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.