Skip to content

API: New flag SW_UPDATE_NOTIFICATIONS_OPTIONS #195

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
codeworksdev opened this issue May 23, 2018 · 0 comments
Closed

API: New flag SW_UPDATE_NOTIFICATIONS_OPTIONS #195

codeworksdev opened this issue May 23, 2018 · 0 comments

Comments

@codeworksdev
Copy link
Owner

codeworksdev commented May 23, 2018

Use the SW_UPDATE_NOTIFICATIONS_OPTIONS flag to edit the default configuration settings for the Mochi.widgetOnUpdateReady() method. It's important to note that the SW_UPDATE_NOTIFICATIONS flag must be set to true for these settings to take effect.

DEFINITION (DEFAULT)

SW_UPDATE_NOTIFICATIONS_OPTIONS : {
    buttonTitle       : 'Update Available',
    dialogButtonTitle : 'Update Now',
    dialogContent     : '<p>Good news! A new software update is available for your app. We recommend updating now, but if you\'d like, you can hit cancel and manually refresh later.</p>',
    dialogTitle       : 'Software Update',
    }

SCREENSHOT

Generated by Mochi.widgetOnUpdateReady() method.


screenshot

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant