Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 9    Views: 110

lsills81
Apple Fan
Profile
Posts: 469
Reg: Mar 19, 2012
location unknow...
14,090
07/21/12 06:39 PM (13 years ago)

How do I copy my iPad app and duplicate then edit BT_Config file?

How do I copy the config file from one app (iPad) to create another one (iPhone)....then link the duplicated app to a new Control Panel using a new buzztouchAppId and the buzztouchAPIKey. Sorry....let me clarify. I created my iPad app and embedded my PDF's. Once the iPad was complete (almost everything is universal except for the PDF's and embedded images) I copied my BT_Config file. Next I created another app and named it iPhone. I then downloaded the source code and opened it in Xcode. I pasted the BT_Config file and ran the code on my iPhone and it worked perfectly. The only problem is that I need to make separate changes to the iPhone version and can't do that with just one control panel. My question is how do I take the API/key from the new control panel and incorporate it into the copied BT_Config.txt file? Thanks
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/21/12 09:04 PM (13 years ago)
It won't work because the Config file is merely reflection of the database in the control panel. you make changes in the control panel you are not modifying the Config file. You are modifying the database. The Config file is constructed from the database. So taking the API/Key and placing it in the Config file won't accomplish what you seek. Fred
 
lsills81
Apple Fan
Profile
Posts: 469
Reg: Mar 19, 2012
location unknow...
14,090
like
07/21/12 09:10 PM (13 years ago)
Thank you...great explanation!
 
lsills81
Apple Fan
Profile
Posts: 469
Reg: Mar 19, 2012
location unknow...
14,090
like
07/21/12 09:16 PM (13 years ago)
So can you explain the point of even copying an app with the BT_Config.txt file? You have zero "independent" control over it.....or am I missing something. *** I guess I could see the point for images (embedded vs: url) but it just so happend that since my dependencies is with a page that you can't specify iPad/iPhone (PDF) I am forced to build 2. Correct?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/21/12 09:21 PM (13 years ago)
You have lots of control, perhaps not with the Control Panel, but there's no rule that says thou shall only use the control panel. The control panel only provides a interface that non-programmer types can understand. By learning to manipulate the Config file you are free to roam about the app world. Fred
 
lsills81
Apple Fan
Profile
Posts: 469
Reg: Mar 19, 2012
location unknow...
14,090
like
07/21/12 09:25 PM (13 years ago)
I've not found any in-depth tutorials on how to programmatically change the app? I've seen your post about moving the BT_Config.txt file but nothing as you just wrote. I would be eager to learn.
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
07/21/12 09:59 PM (13 years ago)
Buzztouch U android learning path/configuration data. David explains the configuration file and how you can manipulate it. Its worth the time to watch the videos and take the quizzes. Should mention it applies to both ios/android
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/21/12 10:09 PM (13 years ago)
Go to MySkylla search examination
 
lsills81
Apple Fan
Profile
Posts: 469
Reg: Mar 19, 2012
location unknow...
14,090
like
07/22/12 01:14 AM (13 years ago)
WOW!!! Buzztouch U is REALLY awesome. The moment I read your post I started watching videos and learned I think 2 ways to do this....tell me what you think. 1. Create a custom UIViewController and add it to the iPhone (remember I need to URL my PDF's for the iPhone version...embedded for the iPad) version only. VERY rough idea here... 2. Create a copy of the iPad version and remove the Configuration and Report to Cloud options. Then just copy and paste the iPad version of the BT_config.txt file and change ever instance in the BT_screen_webView from the embedded PDF to one that is on my server. I am fairly confident that the second option will work...my fear is from here on out I will have to update the app manually. Now if all the PDF code is grouped together I could just cut that out and then copy the updated BT_config.txt file and then paste the "my custom" BT_screen_webView? Let me know your thoughts....thank you
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/22/12 05:51 AM (13 years ago)
Two will work. I would actually suggest my third party online Config solution for both versions. Leave the report2ClouldURL alone. Version 1: iPhone - with Dropbox online Config file Version 2: iPad - with Dropbox online Config file Version 3: Buzztouch online Config file use this for development Question is how to group the PDF Config screen info in the Config file. Perhaps if you create those screens subsequently. Fred
 

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.