Discussion Forums  >  Buzztouch News and Announcements

Replies: 41    Views: 7542

David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
01/06/13 03:56 AM (13 years ago)

Live / Design Mode Available

Hi gang, We've begun to roll-out the Live / Design mode feature we've been talking about. Most of you will see a Publish Changes in your app control panels. We'll provide a .pdf in the coming days to help explain some details about this feature. Most of you will understand from these simple ideas... THIS FEATURE IS NOT RELATED TO OLDER v.13, 1.4, v1.5 Apps made with buzztouch. 1) Nothing has changed if you don't want it to. 2) Newly downloaded source code will have a few additional properties in the BT_config.txt file. You can see these by looking at the "Show Config Data" screen. Note the "currentMode" and a few other elements. You can ignore the "registerForPushURL" and "promptForPushNotifications" for now but you're welcome to get excited about them :-) 3) If you re-download your code for an app, you'll want to design / adjust while in Design Mode. When you're ready to publish to the App Store or market, update the JSON in your project to "Live Mode." From there on out you can test your changes on your device by running it in "Design" mode again. "App Store apps should be compiled with "currentMode":"Live" so they don't notice changes until you click the publish button." 4) You can update the version numbers to whatever you want now. Change it as necessary. This could be helpful in a few cases where you want to easily differentiate between several different apps in your control panel that have the same name. Which leads to the next cool change..you can name your apps whatever you want now. Previously you had to choose a name that was unique across the entire buzztouch system. This is no longer the case and should make it much easier to manage things. BEWARE. If you use the same project name, and the same app name, it could get confusing when you download your source code. Pay special attention to this change so you know what you're downloading.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/06/13 04:19 AM (13 years ago)
Wow, cool David. Thanks!! Any idea when this functionality will be ported to the selfhosted version? Thanks again! Best Regards, Danny
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/06/13 04:38 AM (13 years ago)
Push Notification roll out is next after Live / Design gotchas worked out (always something!). Both are in the new Self Hosted package. A week or so seems likely? Lots going on....
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/06/13 04:45 AM (13 years ago)
Sounds cool, thanks David, sounds like an excellent feature - I get the gist of it, looking forward to the pdf too before I take the plunge. Also, I echo @PSMDanny's comment. I can see the feature in my BT hosted account, but my apps are self-hosted. My scenario for first use is I have an app that I published for ios, then I realised when I started on an android build of it that I had used features that I have to change to make a single BT app that is android compatible (capitals in my build, RSS plugin). So I expect to be trying this out very soon! Alan
 
Jordan
Aspiring developer
Profile
Posts: 45
Reg: Oct 15, 2010
Orlando
2,100
like
01/06/13 06:05 AM (13 years ago)
Looking forward to it David.
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
01/06/13 06:50 AM (13 years ago)
Can't wait to try it out. Thanks David!
 
Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
like
01/06/13 07:32 AM (13 years ago)
Sounds great...can't wait for the new version of self hosted will all the new new features( specially push notifications) to roll out...just waiting for the bank people to solve my credit card issue and upgrade and get the cool member's tag.. Thanks David and the team, buzztouch really changed my life...
 
shak77
buzztouch Evangelist
Profile
Posts: 399
Reg: Jan 18, 2011
location unknow...
7,240
like
01/06/13 07:38 AM (13 years ago)
Sounds great David! Quick question- Are you saying this feature isn't available for v1.5 apps?
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
01/06/13 08:06 AM (13 years ago)
Awesome David! This helps tremendously in testing and displaying the correct changes once it hits respective app stores! Thanks again
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
01/06/13 08:17 AM (13 years ago)
This is very cool, I cant wait to pick your brain some day on the engineering behind this. I am guessing it looks for a JSON property in order to fire the refresh method, but I know it has to be more complicated then that. (multiple variables) I love the nerd factor of this stuff. Dynamic content, multiple platforms, amazing amount of options, works on older devices. Still blows me away what you have done here. Great work as always. Jim
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/06/13 08:40 AM (13 years ago)
Great feature. The naming change an added bonus. Thanks.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
01/06/13 08:46 AM (13 years ago)
BAZINGA!! -Sheldon
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/06/13 09:35 AM (13 years ago)
Thanks David @Buztouch! I like the feature where you can name the different Apps in the control panel now. That is huge! LA
 
Cakebit
Code is Art
Profile
Posts: 502
Reg: Dec 15, 2010
In your local b...
16,520
like
01/06/13 10:14 AM (13 years ago)
Thank you David! I think this will allow also better beta testing for you pre-release apps :-)
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
01/06/13 10:23 AM (13 years ago)
Awesome! In Danny's shoes here. We self-hosted folk will have to just wait a little more for our new goodies, we can do it ;) I'm going to have a fun time picking at the source-code to make sure our mods and theme still works for the new huge server update, super excited! Cheers! David https://buzztouchmods.com
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
01/06/13 01:45 PM (13 years ago)
Very excited to see "promptForPushNotifications"!! Good to know it is getting there. The Live / Design function is a great addition to the system. Like many, I had to hide the new pages in development with a login which wasn't very cool. But this is something else! Farcat
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/06/13 08:48 PM (13 years ago)
Will Push Notifications be allowed via API or JSON? I have some apps that aren't connected to a control-panel but still are "online" that would really benefit from PN's!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/06/13 11:49 PM (13 years ago)
@chris1: APN is a combination of four critical ideas. 1) The device needs to register "somewhere" A backend is necessary to keep track of what devices have registered to receive your messages. This is NOT the Apple Push Notification service, this is a backend you maintain. In member cases it will almost always be the buzztouch backend or a self hosted control panel backend. 2) The code in the app needs to know where to send the registration token. This the empty registerForPushURL property you see in the JSON. This will have URL to send the token too. This could be anything but the script at the URL must know what to do with the token. In most cases this will "point" to our backend or the self hosted control panel backend. 3) 2) When a device is registered to receive messages, the code in the app needs to understand what to do when a message arrives. 4) Apple Sends the messages: Your backend, ours, somebodies, sends a message to the Apple Push Notification service to send the actual message. Same idea with Google and Android. This is why you need a backend...to save the device tokens to send to apple with each message to send. I'm not exactly sure what you mean but pushing via APi or JSON but can makes some assumptions. If you're apps isn't "connected" to a control panel, you'll still need a way to register devices and send messages. You could easily set up an app in your BT panel just for this purpose. Register devices to that app then send pushes from that panel. All other parts of the app could be disconnected from any backend. Bottom line, it'll work a few different ways depending on the developer's approach and goal. Including with offline apps.
 
themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
like
01/07/13 01:59 AM (13 years ago)
could any of these things inflict a problem with current apps. ? somehow when i update my screens the app itself wont update anymore. i made some changes in my web screens but in the emu and on ipad/iphone it doesnt show.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/07/13 02:51 AM (13 years ago)
@themc: Nope..should affect any existing apps. The Live / Design feature only affects the "modified date" that the app uses to determine if you've made any content updates. "when i update my screens the app itself wont update anymore" Hard to know what this means without a few more details. If you're modifying web content you created in the control panel, you could test by making sure the Refresh button is displayed (advanced properties in these screen types). Use the refresh button in the app, see if your changes appear.
 
themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
like
01/07/13 02:56 AM (13 years ago)
thnx will try
 
themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
like
01/07/13 02:58 AM (13 years ago)
ok i tried it with force refresh on and the browser refresh button. the button does appears. but the content of the custom webpage still wont update. even when i try to refresh it manually
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/07/13 03:02 AM (13 years ago)
Hmm...seems strange. Connect your device to Xcode, or use the simulator...does the Output Console show any clues? It could be that the content is having trouble downloading / saving to the device. The Output Console shows all sorts of neato info to help you debug this type of thing. Use the clear button on the console, empty the results. Click Refresh...are there any clues in here? We've written lots of code to the output console to help "see" whats going on.
 
themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
like
01/07/13 03:09 AM (13 years ago)
here is the run info for the app: ## EDIT REMOVED CONSOLE OUTPUT
 
themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
like
01/07/13 03:10 AM (13 years ago)
and here is the code from a refresh in the custom html part. ## EDIT REMOVED CONOLE OUTPUT
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/07/13 03:35 AM (13 years ago)
Please don't post the entire contents of your Output Console on this forum. I removed what you posted. Why? Have a look at this data...there are all sorts of pieces of info in this output that you do NOT want the public to see. YOur app id's, URLs, etc. I reviewed this and see nothing wrong with it. It clearly shows what URL's the "web content" is coming from. Load those in your browser (copy them)..does the content you expect to see show? I loaded on up, saw some images, content, etc. but there isn't anyway for me to know what you're changing. You'll end up having to figure out what is and what isn't showing in the device. This is a relatively simple process, the app should show the same thing your regular browser shows when you load one of the URL's you see in the output console. If it does not, you'll need to step-by-step see where it's not doing what you expect. I dont' see anything wrong with this output.
 
themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
like
01/07/13 03:44 AM (13 years ago)
ok sorry my bad. i used the link it should load and i get the content it should be in my web browser however i dont get that content when i look at it from the app screen
 
themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
like
01/07/13 03:45 AM (13 years ago)
short said it show how it should be in safari but not in the app
 
themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
like
01/07/13 03:47 AM (13 years ago)
im gonna try to remove this page and renew it by a new html screen and see if it solves update: removed the screen and created a new one problem is solved now
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/07/13 03:57 AM (13 years ago)
Weird! Glad you go it solved. Not sure what could have been happening :-)
 
themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
like
01/07/13 04:00 AM (13 years ago)
dunno either all i know is it did not update since yesterday around 16.00 european time. i had multiple screens like this and renewd them all
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/07/13 05:08 AM (13 years ago)
I might have a clue. I have had experience of the same thing. Over the weekend, I was editing a text/html page that I was testing on both Android and Apple devices at the same time. When I refreshed, the iPhone refused to show the updates I was making, the Android phone showed them immediately. I stopped, had a break. A few hours later it seems the problem had righted itself and the updates came through on the iPhone.
 
themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
like
01/07/13 05:14 AM (13 years ago)
the weird thing is that even now when i recreat a webpage i can see it again. at first it looks good but when i want to re-edit it now it keeps the content i entered first.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/07/13 05:27 AM (13 years ago)
off topic @themc: you've sent me a pm but you haven't turned on private messaging so I can't reply (I can but you don't receive anything). Look in your account --> public profile Best Regards, Danny
 
themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
like
01/07/13 05:45 AM (13 years ago)
the weird thing is that even now when i recreat a webpage i can see it again. at first it looks good but when i want to re-edit it now it keeps the content i entered first.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/07/13 06:33 AM (13 years ago)
Thanks @David - that clears some things up. The scenario I was thinking of is a BT app that has its config.txt stored on a webserver (but not a self-hosted control panel). Thus the app is online, just not connected. For an app like that, I'm guessing I can still send PN's from Buzztouch? It sounds like another piece of the puzzle is handling when to process the scripts. Since I haven't seen what you're planning in action yet, I don't know if we can schedule PN's for a later date. That's how Parse works (though I haven't had time to implement it yet). But doing so would require something more advanced than simple php with a CRON job I'm guessing. Which I guess maybe that brings me to the confusing part of my question. By JSON or API, I was wondering if it would be possible to send a PN request from my website to BT to then send to fthe device? I think I have a lot more to learn about PN's - looks like I'll be doing some more reading!
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
01/07/13 08:06 AM (13 years ago)
Excited for the webinar tomorrow to hear how these new features are going to work. I'm expecting an SRO crowd and to do a lot of listening! don't forget to register: https://attendee.gotowebinar.com/register/8410080125806915072
 
David73
Aspiring developer
Profile
Posts: 66
Reg: Jan 12, 2013
Texas
660
like
06/30/13 07:04 PM (12 years ago)
I'm not sure if anybody is still monitoring this thread. If there are, can you tell me where I can get the PDF mentioned in the first post about how to use Live/Design mode? Thanks, Dave
 
David73
Aspiring developer
Profile
Posts: 66
Reg: Jan 12, 2013
Texas
660
like
06/30/13 07:38 PM (12 years ago)
I'm not sure if anybody is still monitoring this thread. If there are, can you tell me where I can get the PDF mentioned in the first post about how to use Live/Design mode? Thanks, Dave
 
RonBo
buzztouch Evangelist
Profile
Posts: 167
Reg: Feb 26, 2012
Raleigh, NC
5,220
like
06/16/14 03:31 PM (11 years ago)
Has anything changed with LIve/Design mode lately? See this thread below; several reports of "Live" apps, that are getting updates without Publishing. http://www.buzztouch.com/forum/thread.php?tid=352C226D7194F4B612A7302&fid=A00805FCC9962ECBA15A891&sortColumn=FT.id&sortUpDown=&currentPage=2
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
06/17/14 01:53 AM (11 years ago)
There are a few more recent posts that suggest it is broken with BT 3.0. A fix was published, by (I think) @chris1, which I have not personally tried.
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
06/17/14 03:52 AM (11 years ago)
I've implemented Cris1's fix and it does not work. Also I just published a new app 3.0 self hosted with push. The push notification works but new devices are registering as live and design. Not the same device though. It's totally random. 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.