Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

API: New flag SW_UPDATE_NOTIFICATIONS_OPTIONS #195

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

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

No branches or pull requests

1 participant