Discussion Forums  >  Self Hosted Control Panels

Replies: 12    Views: 98

daku7
Aspiring developer
Profile
Posts: 227
Reg: Oct 30, 2011
Toronto
3,170
06/13/12 01:27 PM (13 years ago)

App Refresh, V2.0 Self Hosted

Hello, My app is live in the Apple App Store. After it went live, I changed the menu a little. When the user download the app from the app store, the OLD menu is displayed and the user is not PROMPTED to REFRESH the app. In V1.4 the user was always prompted to refresh. BUT in 2.0 I have noticed that they are not prompted. If they click the refresh button, the app is refreshed.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/13/12 02:53 PM (13 years ago)
Interesting situation. The app should request a refresh, that's what the reportToCloud URL is about. I've encounter this before, not sure why it sometimes works sometimes not. Perhaps the locate will tell. Also take a look at the Config file and confirm the report URL is there. Fred
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
06/13/12 03:05 PM (13 years ago)
The first download is the original compiled version. There are threads that have discussed the reasons for this. The refresh request should happen the second time the app is opened. Version 1.5 worked the same way. That's why best practice is to make sure your final version is what you upload. I actually have the same issue at the moment. After Apple finally approved a client's app, the client decided they wanted to change home screen. Now we're resubmitting a new binary.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/13/12 04:01 PM (13 years ago)
The refresh request should happen the second time the app is opened. Version 1.5 worked the same way. I assumed the issue was with second or subsequent time. If so that's the issue I was assessing. If not, then the issue is failure to update the Config file as noted by MGoBlue. Fred
 
daku7
Aspiring developer
Profile
Posts: 227
Reg: Oct 30, 2011
Toronto
3,170
like
06/13/12 06:10 PM (13 years ago)
The refresh request does not happen the second time the app is opened. or the third time. The config file does have reportToCloudURL. "reportToCloudURL":"http://www.XXXXXXXXXXX.com/BT-server/api/app/?command=reportToCloud&appGuid=EAE2BBF37D14E41B2AAE2D0F4&apiKey=7B702D6DDBFB4C2B7C6C8C3&apiSecret=0E4E61EA5325520917A12E0&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]",
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/13/12 06:24 PM (13 years ago)
Is your Config file the original Config file or did you update it after downloading the Source Code ? Fred
 
daku7
Aspiring developer
Profile
Posts: 227
Reg: Oct 30, 2011
Toronto
3,170
like
06/13/12 06:29 PM (13 years ago)
@Fred, this is the original config file. When the app first loads, it loads the screen location Map plugin. this is the first screen. Could it be that because this is using the device GPS that it is some how conflicting with the refresh function?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/13/12 06:40 PM (13 years ago)
I don't have any reason to believe so, but clearly something is happening. The last app I saw this happen was BTv2.0 Android and I don't believe a nap was on the home screen. I wonder it this (the error, sorta non-error) will show up in the logcat? Fred
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
06/14/12 02:54 AM (13 years ago)
I'm working on apple apps and when developing, I have noticed the same thing when loading an app into the phone from xcode for the very first time. I.e, the app does not automatically refresh the json file on first startup. Users do not instinctively look for the refresh button so I have worked around this by putting a reminder to use refresh into a splash screen. I suspect the way refresh works may be related to how the app is closed after first use - i.e. the app stays in memory when closed and the auto refresh is called under restart conditions only?
 
daku7
Aspiring developer
Profile
Posts: 227
Reg: Oct 30, 2011
Toronto
3,170
like
06/14/12 07:06 PM (13 years ago)
@Fred, what is logcat and where can I find it? @AlanMac, The auto refresh is never called. Not even on a second or third start. I really need this to work because the user is viewing the wrong menu. Any other ideas?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/14/12 07:37 PM (13 years ago)
Funny you should ask BTU has a video on that Tracking Events in Android and iOS Learning Path. Regarding I really need this to work because the user is viewing the wrong menu. Publish new binary with updated Config file. Fred
 
daku7
Aspiring developer
Profile
Posts: 227
Reg: Oct 30, 2011
Toronto
3,170
like
06/15/12 12:38 AM (13 years ago)
I found the problem. If the first screen on start up is location map, custom url or fun quiz. then the app does not prompt to refresh. This is for all app that I create. I tested this on a ad hoc app. Also this is true for Tabbed Layout. I think the problem is that if the first screen takes too long to load or if it uses gps then the refresh does not work. I tried to use menu simple as the first screen this works a lot better. I got the refresh prompt about 3 times and the other 2 times I did not get the refresh prompt. But moving the menu simple up and down did a refresh automatically.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/15/12 06:21 AM (13 years ago)
Excellent info, now we just need a double blind test to confirm the diagnosis. 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.