Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 56

bubblesout
Aspiring developer
Profile
Posts: 27
Reg: Aug 30, 2013
location unknow...
3,370
11/18/13 01:54 AM (12 years ago)

Non-Tabbed Layout not loading, instead former Tabbed Layout loads

hmmm i have noticed a curious issue. hope anyone can help out. in the app-builder first i build a tabbed version of the app. then i exported and installed all in xcode and coded all other issues i wanted. in meantime i worked on other tabs and finally went back to a non-tabbed version in the app-builder (layout). of course i saved this in the app-builder. but for any reason when i run code on my phone it - first loads a former TABBED version and when hitting "refresh" it then loads the correct NON-TABBED version. any idea what i messed up? so far as i know a new export is not needed to change from non-tabbed to tabbed, right? thx for any help here. where do i find the code for this? where is is set if a tabbed or non-tabbed version is used?
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
11/18/13 02:10 AM (12 years ago)
It sounds like the issue is with your bt config file. You just haven't updated to the latest version. Each time you launch the simulator (after a clean and build?) it loads the original config file, you hit refresh and all is well again because it grabs the latest version from the server. So ... You need to COPY the latest config (json data) from your server to your app so when it loads it has the latest. This is only super important just before you publish the app. Cheers Darrel
 
bubblesout
Aspiring developer
Profile
Posts: 27
Reg: Aug 30, 2013
location unknow...
3,370
like
11/18/13 02:46 AM (12 years ago)
@ictguy. thx for this! for sure this is the issue. hat i did now: i just copied the json lines from app-builder (design/live) and replaced the xcode version of BT_config.txt. saved it. for any reason when i now run the app within xcode simulator 1) video icon is white 2) clicking on it - nothing happens (black screen) any further suggestions welcome...
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/18/13 02:46 AM (12 years ago)
What he said. Copy your current json config file over your existing json config file. Provided you've not added any additional plugins, you should be good. And absolutely before you publish. And make sure you're configured for 'Live' and not 'Design' mode. Cheers! -- Smug
 
bubblesout
Aspiring developer
Profile
Posts: 27
Reg: Aug 30, 2013
location unknow...
3,370
like
11/18/13 03:14 AM (12 years ago)
thx again. the bt_screens is causing this still so far as i tested. yes i hv added some plugins in meanwhile... when i check the 2 versions the new one (actual one but in simulator just loading black screen) has this changes in addition: {"itemId":"E6DE30FDBD49263ACC36594", "itemType":"BT_screen_customHTML", "itemNickname":"Meditation Videos", "navBarTitleText":"Meditation Videos", "dataURL":"http://builder.appd.com/files/applications/EA39944F25414EBBFCB1580C8/documents/customHTML_E6DE30FDBD49263ACC36594.html", "backgroundColor":"#FFFCF7", "includeAds":"0"}, and this is removed (in comparison to old file which was at least running in simulator) "navBarTitleText":"Meditation Videos", "navBarRightButtonType":"infoLight", "navBarRightButtonTapLoadScreenNickname":"About", but i guess its hard to check this from outside.. regards
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/18/13 03:55 AM (12 years ago)
Well, a few things 'can' be at play, so let's go through each and eliminate them. 1) First and foremost, update your project 'BT_config.txt' file. In iOS it's in a directory called 'BT_Config' and in Android (Eclipse) it's located in a directory called 'Assets'. Select all and delete the current file, and replace it by obtaining a fresh version from your BT control panel (web browser based config). If you're close to release, choose 'Live' config, otherwise 'Design' is just fine for now. Select it all, run it through jsonlint.com, and copy the entire formatted file and paste it into your project (BT_config.txt). 2) Clean your project. In android it's under the 'project' menu, in xcode it's under the 'product' menu. 3) Remove the application from your device, whether it is an actual device or a simulator. Don't 'quit' it; 'remove' it. This will remove any cached information that could be confusing you or the app. Once that is done, you 'should' be clean. It may or may not fix your problem, but it will eliminate a few things, and we can move forward. If it still doesn't work after the above recommended 'scrubbing', then you might want to try and download a fresh project and try again. Especially if you've added new plugins since the last download. There is a way to manually add them, but worry about that later; you won't over run your API calls with one more download. Let us know how you faire. Cheers! -- Smug Edit: In step 1, don't delete the 'file', delete the 'contents' of the BT_config.txt file. And replace the contents with a fresh, valid, formatted version. Formatting helps the human, the computer doesn't care.
 
bubblesout
Aspiring developer
Profile
Posts: 27
Reg: Aug 30, 2013
location unknow...
3,370
like
11/18/13 08:23 AM (12 years ago)
@smug - you are great ! i guess the missing cleaning part was the issue... working now. thank you a lot. exporting again wouldnt be the problem but all the code changes doing again would hv been tough... bzw: how important is this - what would be if there is no "Live" for publish to apple? "currentMode": "Design", thx again !
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/18/13 02:50 PM (12 years ago)
The difference between 'Live' and 'Design' is small, but the effect can be huge. In 'Design' mode, *any* change in your control panel will be passed to the application. In 'Live' mode, *no* change in your control panel will be passed to the application *until* you publish it. This allows you to test (on Design devices) while having an app 'in the wild'. Cheers! -- Smug
 

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.