-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump versions and add git links; add to README
- Loading branch information
Sashko Stubailo
committed
Sep 15, 2014
1 parent
999ff27
commit c77f223
Showing
4 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
# Meteor reload-on-resume Package | ||
|
||
Add it to your [Meteor](http://meteor.com) app with `meteor add mdg:reload-on-resume`. There is no API - this package changes the behavior of Meteor's hot code push feature on mobile devices only. | ||
Add it to your [Meteor](http://meteor.com) app with `meteor add mdg:reload-on-resume`. This package changes the behavior of Meteor's hot code push feature on mobile devices only. | ||
|
||
Normally, your app will update on the user's device as soon as you push a new version. This process is always smooth in a desktop web browser, but might momentarily interrupt the user's experience if they are on a mobile device. | ||
|
||
With this package, the app will only update itself to the newest version if the user closes and re-opens the app (hence, it "reloads on resume"). | ||
With this package, the app will only update itself to the newest version if the user closes and re-opens the app (hence, it "reloads on resume"). | ||
|
||
## API | ||
|
||
In addition to changing the behavior of hot code push, this package provides a method to check if the app is waiting to be reloaded. | ||
|
||
### Reload.isWaitingForResume() | ||
|
||
A reactive function that returns `true` if a new version of the app has been downloading and the framework is waiting until the app is closed and reopened. Can be used to display a message to the user that says "new version available, restart the app to update." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters