// プッシュ通知設定
application.unregisterForRemoteNotifications()
application.registerForRemoteNotifications()
let mySettings = UIUserNotificationSettings(forTypes: [.Badge, .Sound, .Alert], categories: nil)
application.registerUserNotificationSettings(mySettings)