jamielob / reloader

More control over hot code push reloading for your production apps. Designed to replace mdg:reload-on-resume and provide a more production-ready approach.
28 stars 22 forks source link

Reload doesn't work on "START" #14

Closed nazarposhta closed 7 years ago

nazarposhta commented 7 years ago

Hi everyone! I just tried to use this package for our app and I want to configure => "Update app on Start" but it doesn't work for some reason. my code is just from example.

Reloader.configure({ check: 'everyStart', // Check for new code every time the app starts checkTimer: 3000, // Wait 3 seconds to see if new code is available refresh: 'startAndResume', // Refresh to already downloaded code on both start and resume idleCutoff: 1000 * 60 * 10 // Wait 10 minutes before treating a resume as a start });

So it works on "Resume" but after app was started I still see the message "Please update" which I implemented, and old version on the phone. What to do with that?

jamielob commented 7 years ago

Hi @nazarposhta - so it's downloading the update on first start and the refreshing the next time? If so that's the intended result.

nazarposhta commented 7 years ago

Exactly. On the next time.

nazarposhta commented 7 years ago

I thought that it will be in the same time.

jamielob commented 7 years ago

First time it loads it downloads the update and holds it ready for the next restart. I'm going to close the issue for now since this behavior is by design.