LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
01/13/13 12:47 PM (13 years ago)

Refreshing

Any one having problems with data not syncing with control panel? I just spend 2 hours trying to sync my control panel with project to emulator. I synced the config file, project clean, refresh, and even created a new emulator. LA
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/13/13 12:55 PM (13 years ago)
@LA, Yes! It's started happening with my self hosted control panel. Everything is synched, but I still get the refresh pop up on the apps first load. Happens at every stage of testing, from emulator to google play. Annoying. Maybe a plugin's causing it? I was going to try and investigate but other things take over..
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/13/13 12:59 PM (13 years ago)
OMG thank GOD @raveyd! I thought I was going nuts..lol Mine is plugins also with non tabbed layout. LA
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
01/13/13 01:02 PM (13 years ago)
Thanks for the heads up. Was having problems connecting to some docs on self hosted CP. BT website control panel was working fine.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/13/13 01:07 PM (13 years ago)
Thanks @nadthevlad, I'm having problems on the BT site. LA
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/13/13 01:10 PM (13 years ago)
Not going nuts just yet! lol! Don't suppose you're using the quiz plugin? Some odd behaviour has been reported recently - not saving data consistently.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/13/13 01:13 PM (13 years ago)
Well I started with the quiz plugin, then I gave up thinking it was that. I created a new plugin but same thing. LA
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
01/13/13 01:15 PM (13 years ago)
Hmm. Just did some updates on old 1.5 apps and on self hosted, all working well. So this post is no help at all. Tested published apps with quizzes and unpublished apps with self hosted quiz, no issues.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/13/13 01:18 PM (13 years ago)
@MacApple, I'm trying to use Tabbed Layout and it's not picking up the second tab or even my next screen on top nav. bar. LA
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
01/13/13 01:27 PM (13 years ago)
Maybe not then. Back to the drawing board.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/13/13 01:38 PM (13 years ago)
Ok...my plugin is not downloading in my package so that's why mine is not updating. LA
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/13/13 01:47 PM (13 years ago)
Update: The config. data in the BT control panel not showing my second screen. LA
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/13/13 02:47 PM (13 years ago)
I guess I should say I'm experiencing similar difficulties along with raveyd. I'll finish. I'll copy my config from my BT Server and paste into my local app. Run it. The first thing it wants to do is update. I 'think' all my data is current. I am using the Quiz plugin, but I haven't found any quirks in it specifically. Cheers! -- smug
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/13/13 02:53 PM (13 years ago)
Hey Smug, All my Apps in control panel are not showing or adding a screen in the control panel config file. Where do I put the link if use a remote server for my config file? LA
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/13/13 03:22 PM (13 years ago)
@SmugWimp, Don't think it's anything to do with the quiz now. I just set up a new project, downloaded it to eclipse and tested by deleting the plugin files one at a time from eclipse and server control panel, synching the config and deleting the app from the emulator each time. I ended up with an app just with a simplemenu home screen and was still being prompted to refresh. So maybe something's changed in the core files at BT's end?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/13/13 03:25 PM (13 years ago)
Hey @raveyd, You can delete plugin java and xml files that you don't need in Eclipse? LA
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
01/13/13 04:12 PM (13 years ago)
Are you updating the config with the live/design mode settings? (i.e., do you have a red dot or a green dot?)
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/13/13 04:32 PM (13 years ago)
@LA, yes, you can remove the ones you don't want (and the activity from the manifest), but bear in mind, if you want to use one of the plugins in the app at a later date you'll need to redownload the project, drag the new plugin files into the project and re-sign the apk to update in google play. On the plus side, it can make the apk a lot smaller, and presumably more efficient. @Stobe, in my case, I'm using self hosted and don't have that option yet.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/13/13 05:17 PM (13 years ago)
Hi @Stobe, It's red. LA
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/14/13 08:48 AM (13 years ago)
Still the same this morning. My config data says it's in Design mode. Still not downloading my screens I have in the App. Either adding screens or taking away. Can't do anything until this is solved. LA
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/14/13 11:28 AM (13 years ago)
This is strange. I'm not seeing anything on this end that would cause this. But, like @Stobe's mentioning, I wonder if it's something to do with the Live / Design mode feature and a misunderstanding of how it should work? To make matters a bit more complicated...the apps behavior will be different depending on whether or not it's project files understand what Live / Design mode is in the first place. Assuming the project DOES understand Live / Design mode (meaning you've downloaded the project after this feature was introduced), the app will download the config.txt data you see in the control panel for Live or Design mode depending on the "currentMode" value in your project. The only way to be certain, 100% of time, as to what's happening is to use the Output Console to show you where the app is pulling it's data from. There are lots of possibilities and it's always best to make sure you understand what data it's using. The options are... 1) The data from the config.txt file in the project because it does NOT include a dataURL or a reportToCloudURL 2) A cached version of the data from your control panel because it DOES use a dataURL and a reportToCloudURL 3) A fresh version from the control panel. In all cases, you can see where it's reading this data by looking at the Output Console with the device or simulator running. Clear the console, launch the app, it will show you what data it's reading.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/14/13 11:33 AM (13 years ago)
Hey David @buzztouch, I don't know but now it's working. Something very strange was happening yesterday. LA
 
juansezoh
Code is Art
Profile
Posts: 25
Reg: Nov 01, 2012
Medellín
2,200
like
01/21/13 12:26 PM (13 years ago)
greeting I have the same problem and only on Android, the application does not update (no updates menus) and html not download?. It may be the blank quiz or plugin?. I suggest you can try?. Note: Another old app I have if properly updated. I hope I can help and thanks in advance
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/21/13 12:30 PM (13 years ago)
Hey @juansezoh, I'm assuming your using the quiz plugin? LA
 
juansezoh
Code is Art
Profile
Posts: 25
Reg: Nov 01, 2012
Medellín
2,200
like
01/21/13 12:35 PM (13 years ago)
Yes, i use it
 
juansezoh
Code is Art
Profile
Posts: 25
Reg: Nov 01, 2012
Medellín
2,200
like
01/21/13 12:36 PM (13 years ago)
Just upload it to screen. But even I do not use
 
juansezoh
Code is Art
Profile
Posts: 25
Reg: Nov 01, 2012
Medellín
2,200
like
01/21/13 08:00 PM (13 years ago)
I deleted the quiz, and the plugin blank screens, and the application is not updated?. The iOS version yes, but not Android. Any idea?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/21/13 09:20 PM (13 years ago)
If you want to 'force' an update on Android, don't delete the app, but go to your applications manager, select your app and 'delete the data'. If you do that, it will 'revert' to the app state as it was first downloaded, and it will then update with the latest config available. Hope this helps Cheers! -- Smug
 
juansezoh
Code is Art
Profile
Posts: 25
Reg: Nov 01, 2012
Medellín
2,200
like
01/21/13 10:06 PM (13 years ago)
Hello You mean to delete the data?. Remove the screens and actions?. Thanks for the help
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/21/13 10:18 PM (13 years ago)
No no... don't do that. I mean in the device, or in the device simulator. Tap on the "settings", and select "application manager". then select the app in question. Along with other information, there (usually) are buttons that allow you to uninstall the app, force stop (kill) the app, or delete the application data. Delete the Application data ONLY. That will delete all the cached information in your app, and when you launch it again, it will force a refresh. Don't mess with your buzztouch control panel. This is all on the device. Cheers! -- Smug
 
juansezoh
Code is Art
Profile
Posts: 25
Reg: Nov 01, 2012
Medellín
2,200
like
01/22/13 10:26 AM (13 years ago)
worked perfectly, thank you very much
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/22/13 02:32 PM (13 years ago)
Had to revisit this problem as I'm working on some updates. The app is still prompting for a refresh even though the config files are synced. These are the debug messages from logcat: BT_activity_root:loadAppData loading BT_config.txt from /assests folder in Eclipse project BT_fileManager: readTextFileFromAssets: "/BT_config.txt" BT_activity_root:loadAppData loaded BT_config.txt from /assets folder successfully BT_application: getDataURLFromAppData BT_activity_root:loadAppData BT_config.txt file does use a dataURL for remote updates BT_activity_root:loadAppData cachedAppConfig.txt does not exist in the cache BT_application: validateApplicationData BT_activity_root: application data appears to be valid JSON BT_application: parseJSONData BT_application: parsing core settings BT_application: parsing themes BT_application: parsing tabs BT_application: parsing screens BT_application:parseJSONData done parsing application data Anyone any ideas? I keep being drawn to this bit: BT_activity_root:loadAppData cachedAppConfig.txt does not exist in the cache but really, I have no idea. PS, self hosted server running most recent update.
 

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.