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
asldkfjasldkfjasldkfjasldkfj
39 PointsShow notification when user gets a new message via Parse?
Hello,
I'm making an app with Parse right now. The app is almost done and I'm on one of my last steps to submitting it. The only problem is I've got absolutely no idea how to implement it with push.
What I'm trying to do is show a push notification when a user gets a new message, I've sorted out all the certificates and I'm able to send a message through the Parse control panel. I'm just struggling to find out how I could make a push notification show when the user gets a new message to a class in Parse called "CustomMessages."
Regards, Arman B.
asldkfjasldkfjasldkfjasldkfj
39 PointsHi Aaron Ackerman! Thanks for responding so quickly. Your post covers Swift, I forgot to say that this my app is made in Objective -C as I'm still learning Swift. I've checked out the Parse user guide on notifications, but it doesn't necessarily tell me how to do what I want it to do which is displaying a notification when the specified user in the subclass "toUser" gets a new message in the class customMessages addressed to them. That article focuses on how to get it up and running though, and i've followed those steps already. Thanks, Arman B.
1 Answer
Jason Woolard
11,563 PointsThis is actually fairly simple, I've just implemented that same feature in my app just by reading the docs on Parse.com. It is recommended to use Cloud Code now for push notifications though for security reasons as pointed out by Parse. Also I used Objective-C as well. I'd post my sample if I could figure out how to 'format' certain parts of my post on here as code.
asldkfjasldkfjasldkfjasldkfj
39 PointsHi Jason Woolard ,
I am a newbie to Parse, and I'm currently just using it as a backend. I'm trying to find out about how to use Parse's Cloud Code product but I'm not yet confident in using it. Can you please tell me how you did do notifications, but as you said you're having trouble with formatting certain parts of your code. Below, I've attached some tips on how to 'format' your code. Anyways, it'd be cool to see some of your sample code because it would really help me do this application :|)
Also, in advance I'd like to thank you for replying to all my posts so quickly! Your help was much appreciated! So you rock!
Thanks for all your help once again,
Arman B.
So here are some tips on how to 'format' your code:
• If it is a lot of code, I'd use a site called Pastebin. It allows you to paste code in mass amounts. Feel free to check it out at http://pastebin.com/ .
• The classic way of 'formatting' your code at Treehouse is using Markdown. Look at the Markdown Cheatsheet, Treehouse Island provided:
" Markdown Cheatsheet Markdown is a short-hand syntax for easily converting text to HTML. Below are some popular examples of Markdown formatting. For more examples reference Markdown Basics for a more detailed overview.
Links This is an example link
Code Wrap your code with 3 backticks (```) on the line before and after. If you specify the language after the first set of backticks, that'll help us with syntax highlighting.
```html
<p>This is code!</p>
```
Italic Here’s a word that is emphasized
Bold Here’s a word that is bold
Images

Unordered List
- Candy
- Gum
- Peanuts
Ordered List
- Red
- Green
- Blue "
agreatdaytocode
24,757 Pointsagreatdaytocode
24,757 PointsCheck out my post here It covers local notifications within your app.
Also have you check out the Parse user guide on notifications?