Skip to content
This repository was archived by the owner on Feb 27, 2019. It is now read-only.

Defines a callback for the notifications permission#207

Open
dominikweifieg wants to merge 2 commits intonickoneill:masterfrom
dominikweifieg:master
Open

Defines a callback for the notifications permission#207
dominikweifieg wants to merge 2 commits intonickoneill:masterfrom
dominikweifieg:master

Conversation

@dominikweifieg
Copy link

When using frameworks like PushWoosh or OneSignal, the app has to call methods on these frameworks to request the permission for notifications from iOS. Since PermissionScope calls UIApplication.shared.registerUserNotificationSettings itself, it is not possible to use PermissionScope and, e.g., OneSignal together in an integrated way.
I have added a notificationRequestCallback which, if set, will be called instead of UIApplication.shared.registerUserNotificationSettings in requestNotifications

@nickoneill
Copy link
Owner

Thanks @dominikweifieg, this sounds reasonable. Can you add this to the docs as well?

@dominikweifieg
Copy link
Author

Sure, will do so tomorrow morning my time and add it to the pull request. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants