Stuck in Subscribing Emails in Android
-
The Problem:
In Android, when I run the code below which is taken from the documentation, it registers an anonymous token but the user is not registered. (meaning the email is not linked)
pn.refreshToken(“https://website.com/pnfw/register/”, project_number);
pn.link(“https://website.com/pnfw/register/”,”[email protected]”,
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
}
});However, if i try this on the terminal
curl https://website.com/pnfw/register/ –data “os=Android&token=123456789&[email protected]”
the token is created and the email is linked in the App Subscribers. Works perfectly.Is there anything missing on the android side so that I can subscribe the user? Thanks
- The topic ‘Stuck in Subscribing Emails in Android’ is closed to new replies.