NextFaze / ionic-manup

Mandatory Update for Ionic
MIT License
52 stars 27 forks source link

Set max alert frequency for optional update #8

Closed MichaelMarner closed 4 years ago

MichaelMarner commented 7 years ago

Add a configurable delay between notifying the user of an optional update.

Currently, an optional update alert is presented every time the user opens the app, if an optional update is available. This could be fairly annoying for users.

Suggest adding a delay to the Manup configuration:

ManUpModule.forRoot({
  url: 'https://example.com/manup.json', 
  optionalAlertFrequency: '1d'
})

The frequency could be specified either as number of seconds, a moment duration object, or a string, as above. Any would work.

sreekanth-karini commented 6 years ago

I want this enhancement is this fixed or available plz tell me.. how to do this..?

MichaelMarner commented 6 years ago

Hi. No this has not been implemented yet. PRs are welcome if you want to try yourself :)

zbarbuto commented 4 years ago

Support for this is not likely to be added but feel free to submit a pull request if it's something you would like.