Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push notifications support #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions TonConnectSpecification.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,27 @@ Session payload is an opaque data object that the service sends over to the clie
Payload inside the [authenticator](#session-authenticator) contains the shared data items and is encoded in JSON.
Any item may be missing if the user chose not to share it or it is not supported by the client.

Push notification API is an optional info. App may use it to send further TON Connect requests directly to the wallet, or tx signing requests per [wallet-api](https://github.com/tonkeeper/wallet-api).

```
{
"items": [
{
"type": "ton-address",
"value": "EQrt...s7Ui",
}
]
"address": "EQrt...s7Ui",
},
{
"type": "ton-ownership",
"address": "EQrt...s7Ui",
...
},
],
"push": {
"url": "https://tonapi.example.com/...",
"headers": {
"X-Push-ID": "f8a90d7edad893",
},
}
}
```

Expand Down