Push Notification Test Payloads
Simulate push notifications on iOS Simulator without a server.
Usage
# Find booted simulator ID
xcrun simctl list devices booted
# Send message push (triggers NSE — mutable-content)
xcrun simctl push booted com.rosetta.dev tools/push-test/message.apns
# Send read push (triggers AppDelegate — content-available)
xcrun simctl push booted com.rosetta.dev tools/push-test/read.apns
# Send call push
xcrun simctl push booted com.rosetta.dev tools/push-test/call.apns
Testing the read eligibility fix
- Open a chat, scroll to bottom
- Background the app (Cmd+Shift+H)
- Send a message push:
xcrun simctl push booted com.rosetta.dev tools/push-test/message.apns - Return to app
- Verify: message should NOT be auto-marked as read
Notes
mutable-content: 1— NSE processes (badge, sound, mute filter)content-available: 1— AppDelegatedidReceiveRemoteNotificationfires- NSE does NOT run on Simulator — only AppDelegate path is testable
- For full NSE testing, use a physical device with TestFlight