Реплай: исправлен отступ от бара до текста (6pt → 8pt, Telegram parity)
This commit is contained in:
34
tools/push-test/README.md
Normal file
34
tools/push-test/README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# Push Notification Test Payloads
|
||||
|
||||
Simulate push notifications on iOS Simulator without a server.
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
# 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
|
||||
|
||||
1. Open a chat, scroll to bottom
|
||||
2. Background the app (Cmd+Shift+H)
|
||||
3. Send a message push: `xcrun simctl push booted com.rosetta.dev tools/push-test/message.apns`
|
||||
4. Return to app
|
||||
5. Verify: message should NOT be auto-marked as read
|
||||
|
||||
## Notes
|
||||
|
||||
- `mutable-content: 1` — NSE processes (badge, sound, mute filter)
|
||||
- `content-available: 1` — AppDelegate `didReceiveRemoteNotification` fires
|
||||
- NSE does NOT run on Simulator — only AppDelegate path is testable
|
||||
- For full NSE testing, use a physical device with TestFlight
|
||||
7
tools/push-test/call.apns
Normal file
7
tools/push-test/call.apns
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"aps": {},
|
||||
"Simulator Target Bundle": "com.rosetta.dev",
|
||||
"type": "call",
|
||||
"dialog": "02test_caller_key_xyz789",
|
||||
"title": "Caller Name"
|
||||
}
|
||||
10
tools/push-test/message.apns
Normal file
10
tools/push-test/message.apns
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"aps": {
|
||||
"sound": "default",
|
||||
"mutable-content": 1
|
||||
},
|
||||
"Simulator Target Bundle": "com.rosetta.dev",
|
||||
"type": "personal_message",
|
||||
"dialog": "02test_sender_key_abc123",
|
||||
"title": "Test User"
|
||||
}
|
||||
10
tools/push-test/read.apns
Normal file
10
tools/push-test/read.apns
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"aps": {
|
||||
"content-available": 1,
|
||||
"sound": "default"
|
||||
},
|
||||
"Simulator Target Bundle": "com.rosetta.dev",
|
||||
"type": "read",
|
||||
"dialog": "02test_sender_key_abc123",
|
||||
"title": "Test User"
|
||||
}
|
||||
Reference in New Issue
Block a user