Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zshahin-61 committed Dec 1, 2023
1 parent 06eab8c commit f268879
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file not shown.
22 changes: 11 additions & 11 deletions UpgradeUpsell/UpgradeUpsellApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ class AppDelegate: NSObject, UIApplicationDelegate {

Messaging.messaging().delegate = self

// if #available(iOS 10.0, *){
// UNUserNotificationCenter.current().delegate = self
// let authOptions : UNAuthorizationOptions = [.alert , .badge, .sound]
// UNUserNotificationCenter.current().requestAuthorization(
// options: authOptions,
// completionHandler: {_, _ in})
// } else {
// let settings: UIUserNotificationSettings =
// UIUserNotificationSettings(types: [.alert , . badge, . sound],categories: nil)
// application.registerUserNotificationSettings(settings)
// }
if #available(iOS 10.0, *){
UNUserNotificationCenter.current().delegate = self
let authOptions : UNAuthorizationOptions = [.alert , .badge, .sound]
UNUserNotificationCenter.current().requestAuthorization(
options: authOptions,
completionHandler: {_, _ in})
} else {
let settings: UIUserNotificationSettings =
UIUserNotificationSettings(types: [.alert , . badge, . sound],categories: nil)
application.registerUserNotificationSettings(settings)
}
let authOptions: UNAuthorizationOptions = [.alert, .badge, .sound]
UNUserNotificationCenter.current().requestAuthorization(
options: authOptions,
Expand Down

0 comments on commit f268879

Please sign in to comment.