どうすればアクセスできますかfunc didReceive(_ notification: UNNotification) {
ペイロードからの追加データ?
@appcelerateこれが解析されたオブジェクトを提供するOSHandleNotificationActionBlockブロックを設定する必要があります。 設定例については、 initWithLaunchOptionsを参照してください。
非アクティブなために閉じています。 このコールバックについてさらに質問がある場合は、お気軽に再開してください。
それでも必要な場合は@appcelerate :
guard let customData = notification.request.content.userInfo["custom"] as? Dictionary<String,Any> else { return }
guard let oneSignalAdditionalData = customData["a"] as? Dictionary<String,String> else { return }
覚えて! _追加データ_は常に[文字列:文字列]です
最も参考になるコメント
それでも必要な場合は@appcelerate :
覚えて! _追加データ_は常に[文字列:文字列]です