In order for nudge to be allowed to send notifications, the library needs permission to send Push Notifications to the device. If your app does not already have a method of prompting the user to send notifications, you can use the method below in a place where you would like to ask the user for notification permissions. This is typically done early on in the app experience.
myNudge.promptUserForPushNotifications(applicationContext)
Key:
myNudge: This would be your instance of nudge created when initializing the libraryapplicationContext: your app’s current Application Context
Comments
0 comments
Article is closed for comments.