You can enable and disable nudge® notifications in the app by using this function. This is typically done where your app manages its settings.
myNudge.setNudgeEnabled(isNudgeEnabled)
Key:
myNudge: This would be your instance of nudge created when initializing the libraryisNudgeEnabled(Boolean): Programmatic way to enable or disable Nudge libraryTrue: nudge library is enabled and a user will receive nudge notificationsFalse: nudge library is disabled and a user will not receive nudge notifications
Comments
0 comments
Article is closed for comments.