Save the following payload with "apns" extension. Example: OnchainNotification.apns
You can drag and drop the file on your iOS Simulator to trigger the same flow you see on a real device. Edit the values according your needs.
{
"Simulator Target Bundle": "io.bluewallet.bluewallet",
"aps": {
"alert": {
"title": "New Transaction",
"body": "You received 0.01 BTC!",
"action": "View Transaction"
},
"sound": "default",
"badge": 1,
"content-available": 1
},
"data": {
"type": 1,
"txid": "abc1234567890",
"hash": "def0987654321",
"address": "bc1qxyz12345abcde67890",
"userInteraction": true,
"foreground": false,
"walletID": "wallet123",
"chain": "ONCHAIN",
"timestamp": "2024-09-12T08:00:00Z"
}
}