mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2025-01-09 17:33:47 +00:00
add uuid to registration message to make sms forwarding happy
This commit is contained in:
parent
182210cf9c
commit
dfc6302b3d
1 changed files with 4 additions and 1 deletions
|
@ -93,13 +93,16 @@ def register(
|
||||||
):
|
):
|
||||||
logger.debug(f"Registering IDS identity for {handles}")
|
logger.debug(f"Registering IDS identity for {handles}")
|
||||||
uris = [{"uri": handle} for handle in handles]
|
uris = [{"uri": handle} for handle in handles]
|
||||||
|
import uuid
|
||||||
body = {
|
body = {
|
||||||
"device-name": "pypush",
|
"device-name": "pypush",
|
||||||
"hardware-version": "MacBookPro18,3",
|
"hardware-version": "MacBookPro18,3",
|
||||||
"language": "en-US",
|
"language": "en-US",
|
||||||
"os-version": "macOS,13.2.1,22D68",
|
"os-version": "macOS,13.2.1,22D68",
|
||||||
"software-version": "22D68",
|
"software-version": "22D68",
|
||||||
|
"private-device-data": {
|
||||||
|
"u": uuid.uuid4().hex.upper(),
|
||||||
|
},
|
||||||
"services": [
|
"services": [
|
||||||
{
|
{
|
||||||
"capabilities": [{"flags": 1, "name": "Messenger", "version": 1}],
|
"capabilities": [{"flags": 1, "name": "Messenger", "version": 1}],
|
||||||
|
|
Loading…
Reference in a new issue