Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Delite Studio

    (@delitestudio)

    Hello, try to make the link in a separate moment. User must be registered before being linked and as the refreshToken is an asynchronous call you must wait it to be completed.

    Thread Starter mikeictinus

    (@mikeictinus)

    Ok thanks that fixed it.

    Thread Starter mikeictinus

    (@mikeictinus)

    Hello

    One more thing, is there a way to link an anonymous token with an already registered email?

    Here is my code on a onPageFinished. Token is already created on OnCreate.

    String tokenid = pn.getToken();
    String email = “[email protected]” (already registered)

    pn.link(“https://website.com/pnfw/register/”,email,
    new PushNotifications.LinkHandler() {
    @override
    public void onLinked(String email, Map<String, String> customParameters) {
    // Do something
    }
    @override
    public void onLinkFailed(String message) {
    // Do something with message
    }
    });

    Is there a way to link the token id? I can’t seem to find it in the documentation. What i want to do is to link the anonymous token with the email.

    Thanks

    Plugin Author Delite Studio

    (@delitestudio)

    An anonymous user can have only a single token. A user identified by an email can have one or more tokens. If you use the link function it identifies you by the token so everything was connected to the anonymous user before will be transferred to the new user identified by the email.

    The token is assigned from an anonymous user to an identified user. IF you have many devices and on every device you link the same user you will see that the user will have more tokens assigned. A post is set as unread or read on a per user basis, so if you have an account and three devices all linked reading a post on one device will make it read for the user and you see it as read on every linked device.

    To answer your question: you have nothing to do. Using the link command on a device will transfer statistics, read and unread state on the identified user.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stuck in Subscribing Emails in Android’ is closed to new replies.