Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Problem with User-to-User Push Notifications; Android

Hi all,

I've met with a problem in the Ribbit app at the point of adding push notifications via Parse.com.

The notifications work fine from the beck-end - there's no problem there.

So here's where I'm at ...

Messages work fine u-2-u Parse shows each device 'registered' The push notification goes to the right objectId - that's in Parse The message is formatted fine

The issue, I think, is to do with the objectId. The ParseConstants file used userId - I don't have that in Parse; all the unique keys are called objectId. It seems that the push is sent to the device that the user is logged into, rather than the user? So if you log in on the same device with different users, that confuses things? I'm not sure.

What is frustrating is that I don't know what code to copy into here to help find a solution!

Help would be massively appreciated. I hope Ben Jakuben is around!!

Steve.