Skip to content

feat: handle the 'Register for Push' app function#123

Merged
gyoshev merged 1 commit intodevelopfrom
register-for-push-function
Feb 16, 2021
Merged

feat: handle the 'Register for Push' app function#123
gyoshev merged 1 commit intodevelopfrom
register-for-push-function

Conversation

@gyoshev
Copy link
Copy Markdown
Contributor

@gyoshev gyoshev commented Feb 16, 2021

Enables automatic handling of the Register For Push app function.

If the service worker is not located at /sw.min.js, or requires a different scope, these can be set through Leanplum.setWebPushOptions. This should have been done before handling a Register For Push function:

Leanplum.setWebPushOptions({
  serviceWorkerUrl: '/shop/sw.min.js',
  scope: '/shop/'
});

@gyoshev gyoshev requested a review from iignatov February 16, 2021 15:28
@gyoshev gyoshev merged commit 3538442 into develop Feb 16, 2021
@gyoshev gyoshev deleted the register-for-push-function branch February 16, 2021 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants