 import UIKit
 import UserNotifications
 
-class StoreViewController: UIViewController {
+class StoreViewController: UIViewController, UNUserNotificationCenterDelegate {
     var timer: Timer!
     var request: UNNotificationRequest!
 


        let center = UNUserNotificationCenter.current()
        center.requestAuthorization(options: [.alert, .sound], completionHandler: { (granted, error) in })
        createNotification()
    }


    }

    func createNotification() {
        let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 5, repeats: false)

        let content = UNMutableNotificationContent()
        content.title = "セール実施中！"
