photools.com Community

IMatch Discussion Boards => IMatch Scripting and Apps => Topic started by: Jingo on June 15, 2019, 11:15:43 PM

Title: App not refreshing in IMatch - refreshes correctly in Browser
Post by: Jingo on June 15, 2019, 11:15:43 PM
Hi Mario - was just working on a new search app example and noticed that when I updated the code, the app was not updated inside IM (a force F5 refresh and clicking the refresh button didn't help either).  I added console.logs and they aren't hit inside IM but they are hit in the browser.  Shutting IM and restarting helped.. but then it stopped refreshing further updates again.  I set debug logging, but it doesn't show any errors or info when a refresh is done.

Any thoughts? 8)
Title: Re: App not refreshing in IMatch - refreshes correctly in Browser
Post by: Jingo on June 15, 2019, 11:54:48 PM
I figured it out... The AppRefresh parameter was set to false in the app.json for my app.... once removed - all is well again.   8)
Title: Re: App not refreshing in IMatch - refreshes correctly in Browser
Post by: Mario on June 16, 2019, 08:22:41 AM
This parameter should be set for very specific purposes - to prevent a refresh of the app ;-)
Title: Re: App not refreshing in IMatch - refreshes correctly in Browser
Post by: Jingo on June 16, 2019, 02:19:07 PM
Quote from: Mario on June 16, 2019, 08:22:41 AM
This parameter should be set for very specific purposes - to prevent a refresh of the app ;-)

I copied the "File Finder" app as a start for this app back in the day... and didn't realize this parameter was set in that JSON program. 
Title: Re: App not refreshing in IMatch - refreshes correctly in Browser
Post by: Mario on June 16, 2019, 02:27:51 PM
Can happen. Just be careful when you copy stuff from existing apps.

All app.json parameters are explained here: https://www.photools.com/dev-center/doc/imatch/tutorial-app-json.html