stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
01/08/14 05:34 PM (11 years ago)

published app with current mode as live, yet my device just updated when made a change

A updated an app with the current mode set to live. It resides on my nexus. I just went into BT and deleted a screen. Went to nexus, opened app and got the message that there's an update and do you want to refresh. I did and it did make the change, the screen is deleted. I thought this was not supposed to happen if you published in live mode. Steve
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/08/14 05:41 PM (11 years ago)
Hi Steve, That's correct, it's not supposed to happen. Did you by chance hit the Publish button in your control panel? That syncs live and design mode. And are you 100% sure the app has the config file set to live? Earlier posts you mentioned having published it with it in Design mode. Mark
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/08/14 05:49 PM (11 years ago)
Mark, Weird thing is, I know I published it as live since I purposely went back and did it. But after it updated on my device, I deleted the app and reinstalled it from the Android store and now the app appears as if no change was made, as it should be with live? Should I delete the report to cloud and configuration URLs from my core properties too? Is my device, since I've used it to develop, somehow seeing changes others do not. It was not plugged into the computer when I made the changes. I think I'm not understanding something here. Steve
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/08/14 05:55 PM (11 years ago)
Seems like something is up with your device. Maybe it's caching old info or something. But, if you deleted the app, installed it again, and it's working now (versus having done an update), I'd say all is well. It would be interesting to watch LogCat during an actual app update to see if it says anything about the files it replaces. Maybe it doesn't touch the config file like we think it does. Mark
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/08/14 06:20 PM (11 years ago)
So again, just for the fun of it I made a change to the app in BT and started up my app on the nexus and again, it tells me theres an update and it does do the update! Again I'm not connected to the computer by the USB port. Im going to delete it and reload and I bet were back to no changes but I'd like to find out what's going on since I'd like to make some changes without the world seeing them. Also, what about my question about report to cloud and config URLs? Should I delete them? Steve
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/08/14 06:24 PM (11 years ago)
BTW, I do see the APK I downloaded a while back in the download folder on the nexus. Can this be a problem and if so, how can I delete the? I don't see how.
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/08/14 06:30 PM (11 years ago)
So I also told the nexus to clear cached data (though even though it said it would clear all cached date, it still lists 10 MB there). Delete app, reloaded, no changes there, but then made change in BT and again, get the message. This is nuts.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/08/14 07:08 PM (11 years ago)
This is all strange for sure. The existence of an apk file on your device should have zero affect on any existing apps. It's simply a file that doesn't do anything until installed. I'd try this : * Hook your device up to Eclipse so you can monitor the output in LogCat * Make a change in your control panel * Open your app and see if it prompts for an update. If it does, monitor LogCat and see what URL it uses for the config file. Go to that URL and verify that you're actually in Live mode and not design mode. Mark
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/08/14 07:14 PM (11 years ago)
If you want, send me your apk (or a link to the Google Play page) and I'll install it on my device and see what I can see. Mrkfleming at gmail dot com Mark
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/08/14 07:23 PM (11 years ago)
Mark, Did what you said and the log cat is long. However, I searched for "design" and got nothing, and then searched for "live" and got these: 01-08 21:15:30.959: W/ZZ(3591): BT_activity_host:reportToCloudWorkerThread getting lastModified from reportToCloudURL https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA6732B2A634D9B013A7F4DA8&apiKey=CE052C5094AE03A6F97FC97&apiSecret=7A5E001D163224DBCD55908&deviceId=&deviceLatitude=&deviceLongitude=&deviceModel=google-Nexus 7&userId=&currentMode=Live 01-08 21:15:30.959: W/ZZ(3591): BT_downloader:downloadTextData from URL: https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA6732B2A634D9B013A7F4DA8&apiKey=CE052C5094AE03A6F97FC97&apiSecret=7A5E001D163224DBCD55908&deviceId=&deviceLatitude=&deviceLongitude=&deviceModel=google-Nexus 7&userId=&currentMode=Live So it would seem we're in live mode, no? Steve
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/08/14 07:28 PM (11 years ago)
Yep, it would! currentMode=Live So, back to a question I had earlier...you're not hitting the publish button, are you? You could try to compare the design and live versions of the config file found in your control panel and ensure they are different.
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/08/14 07:34 PM (11 years ago)
I never hit the publish button. However, there is NO live version of the config file in my control panel. I just set current mode to live in eclipse. I guess I've missed a couple of steps. What do I have to do?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/08/14 07:37 PM (11 years ago)
Go into the control panel for your app. Click on "Configuration Data" from the left-hand menu. It'll default open to "Show Design Mode Data" Click on "Live Mode Data" Copy that entire file into the BT_Config.txt file you compile your app with. That ENSURES your config file is in Live mode. Recompile your apk. You'll now be in Live mode for sure. Mark
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/08/14 07:41 PM (11 years ago)
As I said, when I go to Live Mode Data in the Configuration Data, it says {"status": "live version of config file does not exist?"} Don't understand the ? but anyway, there's nothing to copy.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/08/14 07:42 PM (11 years ago)
That is weird. Is this a self-hosted server?
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/08/14 07:43 PM (11 years ago)
No.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/08/14 07:50 PM (11 years ago)
That is super strange. Let me see if I can get somebody from Buzztouch to check on it...it should absolutely be there. Sit tight for a while. Mark
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/08/14 07:50 PM (11 years ago)
Ok, thanks.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/08/14 07:55 PM (11 years ago)
For which app in your control panel is this?
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/08/14 08:02 PM (11 years ago)
SkyEventFinderAndroid
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/08/14 08:02 PM (11 years ago)
Also my full name is Stephen Kronwith if you need it.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/08/14 08:04 PM (11 years ago)
Got it. I've notified David at Buzztouch...hopefully he can get to it shortly! Mark
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/08/14 08:18 PM (11 years ago)
I hope so. I have to get to bed in about an hour in order to catch a very early flight and would like to upload a new APK before I'm away for a week since I won't be able to make any changes while away if every time I make a change, users get a notice. I'll keep my fingers crossed.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/08/14 10:50 PM (11 years ago)
David won't be able to get to it until after 10PM PST. Give it a check first thing in the morning. Once you can replace the config file, it'll only take a couple minutes to generate a new apk. Mark
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/09/14 04:16 AM (11 years ago)
Ok, I'll check later. My last question is, after I copy the live config and paste it into eclipse, set up new APK and submit update, to test my app and make unseen changes do I just go to the config file in eclipse and change the word "live" to "design" or do I have to go to BT control panel and copy entire "design" config file and paste that into the eclipse config file? Thanks, Steve
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/09/14 08:16 AM (11 years ago)
It's working now. Turns out you actually have to hit Publish at least one time to generate the Live file. I had no idea, but I understand now, and will be posting about it later. Go into your control panel, hit the Live Configuration Data link, and then copy all the data that shows up. In your app files, open the BT_Config.txt file, and replace all the text there with what you just copied. Save the file, then compile. You're now running in Live mode with that apk. Mark
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/09/14 11:19 AM (11 years ago)
Ok, but after I upload the APK to live, in order to then make changes unseeable by the public, do I go to the control panel and copy the design config and paste that into eclipse or do I just go to eclipse and take the word "live" and change it to "design"? I figure it's the former choice. And then when I want to incorporate those changes (which will include htm files so hitting publish won't do) back to the public, I again copy the live config from control panel and paste into eclipse and then recompile another APK? Steve
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/09/14 11:22 PM (11 years ago)
Every change you make in the control panel to your app immediately gets reflected in the Design mode config file. So, any app running with a config file in Design mode will see the changes. To push the changes you make out to active apps, which should all be running in Live mode, you just hit the Publish button. That syncs up the Design and Live mode config files in your control panel - they are exactly the same at that point. So, any user running an app in Live mode who open the app will be prompted for an update. Once you've published an app with the config file in Live mode, you don't need to update it again via the store unless you make some changes that can only be added that way (like new code, internal docs, etc). Hitting the Publish button will push out any changes you're ready for your users to see. Mark
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/10/14 07:44 AM (11 years ago)
I make changes to BT docs files so the app has to be recompiled and new APK sent for user to see them. Just wanted to clarify that the entire design and live config files in control panel are what's needed to include with APK, not just a simple change of words in the eclipse copy of those files. Thanks. Steve
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/10/14 09:24 AM (11 years ago)
Hi Steve, There is only one BT_Config.txt file that gets included in your apk. It can be either in Design or Live mode...one or the other, but not both. For apps you want to publish, make sure you include the Live mode config file. You can simply change that single line in the file using Eclipse. But, I prefer to copy the file directly from the control panel to (1) ensure I have the latest version, and (2) ensure I don't make a typo. Mark
 

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.