Auto Update Guidance Required

25 views
Skip to first unread message

Nic Prioleau

unread,
Sep 15, 2016, 9:14:55 AM9/15/16
to GLX Application Framework
I am having problems with getting the auto update feature working and need a little guidance. I have created my app based on the To-do sample application tutorial so the structure of the files, etc is all correct. I uploaded to the server. When and how does the app check to see if there is a new version? Is this a call I have to make? From my understanding, when the app initializes it is meant to check for updates? My app launches without ever informing me there is an update. I have tried manually calling glxapp_updateIfAvailable and if I debug it, the command put glxapp_getProp("auto update url") into theURL, I get "Invalid URL". The image attached is a screenshot of my properties.


Nic Prioleau

unread,
Sep 15, 2016, 12:27:06 PM9/15/16
to GLX Application Framework
So I am now aware that glxapp_getProp("auto update url") will always return empty in the IDE so to debug, I have put some answer dialogs after glxapp_getProp("auto update url") is called and it is still empty. If I hard code the url, I will get the dialog that there is an update available but when I click "Install", I get the error "Error while initializing download: Invalid URL: ."

Nic Prioleau

unread,
Sep 19, 2016, 5:10:00 AM9/19/16
to GLX Application Framework
For anyone that may be able to help (although my hopes are being dashed by the deafening silence) the screenshots below show my directory structure on the server and my settings in the build profile.


The update.txt file resides in the "release" folder and looks like this:

1.2.2r5





Please one last appeal for help here?!

Trevor DeVore

unread,
Sep 20, 2016, 10:24:02 AM9/20/16
to glx...@googlegroups.com

Nic,

In your standalone what do you get if you call glxapp_getProp("update available")? It should return a boolean value (it will always return false in development). To install an update you would call glxapp_installUpdate.

-- 

Trevor DeVore

ScreenSteps

www.screensteps.com    -    www.clarify-it.com


--
You received this message because you are subscribed to the Google Groups "GLX Application Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glxapp+unsubscribe@googlegroups.com.
To post to this group, send email to glx...@googlegroups.com.
Visit this group at https://groups.google.com/group/glxapp.
For more options, visit https://groups.google.com/d/optout.

Nic Prioleau

unread,
Sep 20, 2016, 12:18:55 PM9/20/16
to GLX Application Framework
Hi Trevor,

in glxApplicationFramework -> glxapp_checkForUpdate, I put an answer glxapp_getProp("auto update url") which always returns empty and answer glxapp_getProp("update available") which always return false when I run the standalone. I will only ever get a positive response if I hard code the base auto update url.

Nic
To unsubscribe from this group and stop receiving emails from it, send an email to glxapp+un...@googlegroups.com.

Trevor DeVore

unread,
Sep 20, 2016, 12:39:18 PM9/20/16
to glx...@googlegroups.com
On Tue, Sep 20, 2016 at 11:18 AM, Nic Prioleau <nrpri...@gmail.com> wrote:
Hi Trevor,

in glxApplicationFramework -> glxapp_checkForUpdate, I put an answer glxapp_getProp("auto update url") which always returns empty and answer glxapp_getProp("update available") which always return false when I run the standalone. I will only ever get a positive response if I hard code the base auto update url.

"auto update url" is set by the glxApplicationPackager stack when you build an application. Take a look at the stack script for the glxapplicationpackager stack and find the _BuildProfileUpdateManifestURL() function. If you step through that handler what is the url being assigned to?

Nic Prioleau

unread,
Sep 21, 2016, 3:02:55 AM9/21/16
to GLX Application Framework
It is being set to http://www.filterlinksa.co/distribution/updates/1_0, which is correct.

Trevor DeVore

unread,
Sep 21, 2016, 8:39:19 AM9/21/16
to glx...@googlegroups.com
On Wed, Sep 21, 2016 at 2:02 AM, Nic Prioleau <nrpri...@gmail.com> wrote:
It is being set to http://www.filterlinksa.co/distribution/updates/1_0, which is correct.

If that is the final value then it isn't correct. The final "auto update url" should be something like  <http://www.filterlinksa.co/distribution/updates/1_0/release/update.txt>. Also, if it is being set to <http://www.filterlinksa.co/distribution/updates/1_0> then that doesn't make sense as you reported that "auto update url" is empty. I would do a little more troubleshooting to confirm what it is being set to. You could add some debugging code that runs after packing up a standalone that displays the following:

answer the uObjectProps["auto update url"] of group "ApplicationObject" of stack "application"

Nic Prioleau

unread,
Sep 21, 2016, 12:55:36 PM9/21/16
to GLX Application Framework
Hi Trevor, I am not sure if I put that code into the right place but I put it into glxApplicationPackager -> PackageApplicationForDesktop and it returned empty. 

Trevor DeVore

unread,
Sep 21, 2016, 3:02:07 PM9/21/16
to glx...@googlegroups.com
On Wed, Sep 21, 2016 at 11:55 AM, Nic Prioleau <nrpri...@gmail.com> wrote:
Hi Trevor, I am not sure if I put that code into the right place but I put it into glxApplicationPackager -> PackageApplicationForDesktop and it returned empty. 

Sorry, I wasn't very clear. What I meant to say was put the code in your application itself and have it answer when your app starts up. Just make sure you test a standalone that you built with the glxapplicationPackager.

on glxapp_openApplication
   answer the uObjectProps["auto update url"of group "ApplicationObject" of stack "application"
end glxapp_openApplication

Nic Prioleau

unread,
Sep 22, 2016, 6:17:26 AM9/22/16
to GLX Application Framework
Hi Trevor,

I have figured out the problem and have everything working now. Unfortunately, I did not understand the full procedure and was not using the glxApplicationPackager to create the standalone so we would have run around in circles till you just blocked me! :)

Thanks for your time and efforts none-the-less.
Best regards
Nic

Trevor DeVore

unread,
Sep 22, 2016, 10:38:01 AM9/22/16
to glx...@googlegroups.com
On Thu, Sep 22, 2016 at 5:17 AM, Nic Prioleau <nrpri...@gmail.com> wrote:
Hi Trevor,

I have figured out the problem and have everything working now. Unfortunately, I did not understand the full procedure and was not using the glxApplicationPackager to create the standalone so we would have run around in circles till you just blocked me! :)

Thanks for your time and efforts none-the-less.

I'm glad you got it working.
Reply all
Reply to author
Forward
0 new messages