getNotifications doesn't return correct invite number
See original GitHub issuecommunity.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:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have you tried putting
console.log(notifications.invites);
inside the bottom else statement instead of outside the whole ifelse loop?@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.