2
アプリのアップデートを送信したときにローカル通知が機能しないという問題があります。アプリストアにアプリを送信するとローカル通知が機能しない
class AppDelegate: UIResponder, UIApplicationDelegate,UNUserNotificationCenterDelegate
@available(iOS 10.0, *)
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping() -> Void) {
}
@available(iOS 10.0, *)
func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
completionHandler([.alert,.sound])
}
と私はときに通知を送信するには、このコードを実装している:私は私のデバイスで実行テストして、それが働いていたが、私は、AppStoreからアプリをダウンロードするときに通知がここにすべての で働いていないコードがAppDelgateされていますタイマーヒットは、私は誰かが私はすべてのソリューションを試してみましたが、まだ通知デリゲートと私の現像装置
「正常に動作していません」と動作中のデバイスと動作していないデバイスが動作しているiOSのバージョンをお知らせください。 – shallowThought
@shallowThoughtはまったく動作しません。すべてのバージョンにios 10 –
誰でもこの問題をお寄せください –