ReviewOS

also looking at this

craft-native/craft

fix(ios): schedule a notification with the data the page gave it

#262
Merged glennmichael123 wants to merge fix/ios-notification-data into main
8 files +242 -22
packages/ios/templates/CraftApp.swiftmodified+4-0
Changes to packages/ios/templates/CraftApp.swift
@@ -4433,6 +4433,10 @@ struct CraftWebView: UIViewRepresentable {
44334433 content.body = data["body"] as? String ?? ""
44344434 if let subtitle = data["subtitle"] as? String { content.subtitle = subtitle }
44354435 if let badge = data["badge"] as? Int { content.badge = NSNumber(value: badge) }
4436 // The page's `data`, which is what a tap (#255) and an arrival
4437 // (#256) hand back. It was dropped, so a tap on a scheduled
4438 // notification reached the page as {} (#258).
4439 if let info = data["data"] as? [String: Any] { content.userInfo = info }
44364440 content.sound = .default
44374441
44384442 let id = data["id"] as? String ?? UUID().uuidString