nareshpatchipulusu / auto-update-apk-client

Automatically exported from code.google.com/p/auto-update-apk-client
0 stars 0 forks source link

App doesn't get updated more than once #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Update the version # in the manifest
2. Upload a new version to the website
3.

What is the expected output? What do you see instead?
Expecting to see notification for the new APK for download but I don't see any 
update/notification popping up on the device

What version of the product are you using? On what operating system?
AutoUpdateApk.java version is rc789ff07de49 from    Jun 19, 2012 running on both 
ICS and JB

Please provide any additional information below.
The update happened a couple of times but I had several new versions but I 
can't really reproduce the scenario where the update happened successfully. 
Here are the changes to the constants I made in AutoUpdateApk.java since I am 
in debug/testing mode:

API_URL = "http://www.auto-update-apk.com/download/com.example.kaupdate";
UPDATE_INTERVAL = 4 * MINUTES;
WAKEUP_INTERVAL = 2 * MINUTES;

Are you restricting updates to occur once every 3-4 hours?

Original issue reported on code.google.com by test95...@gmail.com on 14 Nov 2012 at 8:42

GoogleCodeExporter commented 9 years ago
don't touch API_URL, if you change it, you don't get any updates at all.

Original comment by lenik.terenin on 15 Nov 2012 at 7:27

GoogleCodeExporter commented 9 years ago
Thank you for the response, Lenik.

I followed the instructions mentioned in the manual 
(http://www.auto-update-apk.com/manual) which asks that I use /download URL:

"Application downloads
To download application you may click on the Application name or scan the QR 
code on the Application page. This QR code and download link are supposed to be 
given to your customers, so they can install the software on their devices. The 
link and QR code stays the same for the whole lifetime of your application, you 
need to copy/distribute them only once. If you publish the new version of your 
app, people trying to download using QR code or download link will be 
automatically served the newest version.

If you would like to download a particular version you have uploaded (and 
haven't deleted yet), you may click on that version icon.

Please, note, the correct download link looks like 
"http://www.auto-update-apk.com/download/com.your.package.name". Links 
including "/fetch/" and long encoded string are intended for your personal use 
and not for distribution. If you try to use "fetch" links to distribute your 
software you should be aware that:

your customers will get that particular version of software, not the latest one 
as with "download" links
"fetch" links, unlike "download" links, might eventually stop working, leaving 
your customers upset
To reiterate, please, don't distribute "fetch" links, use "download" links 
instead. You may get "download" link by scanning QR code or right-clicking your 
application package name on the Applications page."

Original comment by test95...@gmail.com on 15 Nov 2012 at 10:18

GoogleCodeExporter commented 9 years ago
"Download URL" is the URL you're supposed to put on your web-site or give to 
your customers, so they can download your software. It was never intended nor 
expected to be put anywhere inside the source code.

Did you get updates running?

Original comment by lenik.terenin on 15 Nov 2012 at 10:40

GoogleCodeExporter commented 9 years ago
I reverted the API_URL to the original. Should ANDROID_PACKAGE reflect my app's 
package name or should I leave that as is as well?

private final static String ANDROID_PACKAGE = 
"application/vnd.android.package-archive";
private final static String API_URL = 
"http://auto-update-apk.appspot.com/check";

Original comment by test95...@gmail.com on 15 Nov 2012 at 10:58

GoogleCodeExporter commented 9 years ago
Err, I corrected the API_URL:

private final static String API_URL = "http://www.auto-update-apk.com/check";

and yet no luck.

Original comment by test95...@gmail.com on 15 Nov 2012 at 11:20

GoogleCodeExporter commented 9 years ago
Please, don't change anything you don't understand.

Please, refer to the  issue 22  and  issue 23  (use "Search: All issues") 
regarding the initial testing.

When in doubt, please, read logcat, that's where AutoUpdateAPK writes messages 
about update process.

Original comment by lenik.terenin on 15 Nov 2012 at 10:57

GoogleCodeExporter commented 9 years ago
Sounds good, thanks! Now I see updates pop-up!

Original comment by gan...@gmail.com on 20 Nov 2012 at 7:51

GoogleCodeExporter commented 9 years ago
Great! I'm closing this issue.

Original comment by lenik.terenin on 20 Nov 2012 at 10:28