Skip to content

Commit

Permalink
Update ArekNotifications.swift (#97)
Browse files Browse the repository at this point in the history
add sound permission.
  • Loading branch information
Woon Kung Lik authored and ennioma committed Dec 5, 2017
1 parent 28b28a7 commit eb2f984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Classes/Permissions/ArekNotifications.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ open class ArekNotifications: ArekBasePermission, ArekPermissionProtocol {

open func askForPermission(completion: @escaping ArekPermissionResponse) {
if #available(iOS 10.0, *) {
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge]) { (granted, error) in
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { (granted, error) in
if let error = error {
print("[🚨 Arek 🚨] Push notifications permission not determined 🤔, error: \(error)")
return completion(.notDetermined)
Expand Down

0 comments on commit eb2f984

Please sign in to comment.