Get User identifier through Notix SDK

Each push subscriber has unique identifier in Notix subscriptions database. Clients can obtain this identifier through Notix SDK using sdk.getUser() method.

Example

btn.addEventListener("click", async () => {
    const user = await sdk.getUser();
    console.log("User: "+user)
    btn.innerHTML = "User: "+user
});