question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

User/device not recognized in AWS Pinpoint console during PushNotification.onRegister

See original GitHub issue

** Which Category is your question related to? ** React Native ** What AWS Services are you utilizing? ** ‘@aws-amplify/pushnotification’ ** Provide additional details e.g. code snippets **

extracted from my source code (below) in the app.js file. but in the console aws pinpoint the endpoint is not register to receive push notifications? .

import Amplify, { Analytics } from 'aws-amplify';
import aws_exports from './aws-exports';
import PushNotification from '@aws-amplify/pushnotification';

// gets the registration token
PushNotification.onRegister((token) => {
    console.log('in app registration', token);   
});

NB: aws-amplify analytics works perfectly Nb: I use facebook account kit for login and authentication Nb : i use Android

link dashboard aws pinpoint: https://ibb.co/d2hi9K

Thank You for you reply

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
powerful23commented, Oct 23, 2018

@noellaby then the pinpoint should be updated with this address. Could you try cleaning up the AsyncStorage and then restart the app to see if the library send an updateEndpoint request to pinpoint with this token in the address property. You should see this request under this debugging message: refresh the device token with ...

0reactions
github-actions[bot]commented, Mar 30, 2022

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PushNotications not showing up on AWS PinPoint from @aws ...
1 Answer 1 ... Regarding not getting a token at onRegister , are you testing it on a real device instead of an...
Read more >
Send push notifications - Amazon Pinpoint
This section contains complete code examples that you can use to send push notifications through the Amazon Pinpoint API by using an AWS...
Read more >
Push Notifications
AWS Amplify Push Notifications module allows you to integrate push notifications in your app with Amazon Pinpoint targeting and campaign management support.
Read more >
AWS Amplify/Pinpoint and FCM receiving "Unregistered or ...
onRegister (t => console.log(`Registration token: ${t}`), onRegister && onRegister()); PushNotification.onNotification(n => (console.log(n), ...
Read more >
Frontend Implementation Tips for Pinpoint and AWS Amplify ...
However, when it comes to integrating push notifications, it's not so helpful. Although Amplify uses Pinpoint as a default push ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found