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.

getNotifications doesn't return correct invite number

See original GitHub issue
community.getNotifications(function(err, notifications) {
     if (err) {
        console.log("Unable to get notifications: " + err);
     } else {
     console.log("Notification status: %j", notifications);
    }
    console.log(notifications.invites);
   });

So I’m calling this method when there’s an outstanding friend invite(that does show up when I log in properly onto the account), however the output from the console is

Notification status: {"comments":0,"items":0,"invites":0,"gifts":0,"chat":0,"trades":0} Am I doing something wrong or could this be a bug?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shaunidiotcommented, Jun 5, 2017

Have you tried putting console.log(notifications.invites); inside the bottom else statement instead of outside the whole ifelse loop?

0reactions
shadypollencommented, Jun 5, 2017

@shaunidiot I got rid of it completely, it was just for debugging purposes. @Aareksio Yes, I’ll make post on the forum now that I know it’s an issue with my script.

Thank you to everyone for their time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to FIX Notifications & Invites Not Working on PS4 (Easy ...
Turn on invites and messaging. If you are having problems not receiving notifications. Log out of your PS4 and log back in.
Read more >
Xbox App on Windows 10 Not receiving Console game invites
Only problem is that I can only invite him to games because the Xbox App on my Windows doesn't give me notifications on...
Read more >
Error: Error during invite. Unable to invite user to the group ...
The user does not have the privileges needed to join the group. ... via the 'Invite users' option, the following error message is...
Read more >
Share your Activity and compete with friends ... - Apple Support
When someone invites you to share Activity or compete, a notification appears on your Apple Watch. Tap Accept or Ignore. If you don't...
Read more >
Understanding Who Receives Invitations for Teams Meetings
When you create a meeting the Teams calendar app and don't specify the name of a ... No notifications are sent for Meet...
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