Skip to content

Push Notifications V2 #2343

Answered by vishalnarkhede
VNDRN asked this question in Q&A
Dec 11, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Prior to client.setLocalDevice, you would need to do two separate api calls:

await client.connectUser();
await client.addDevice();

But later we decided to make this more efficient, and merge these two api calls:

client.setLocalDevice(); // there is no api call here, we just store the device info in memory
await client.connectUser(); // pass the device info to backend

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@VNDRN
Comment options

@santhoshvai
Comment options

Answer selected by santhoshvai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants