Solved

push and local notifications

Posted on 2011-09-07
3
529 Views
Last Modified: 2012-05-12
i'm using xcode 4.1.  How do you setup and run push and local notifications?  I can't find a good tutorial on them.  I already have my provision profiles setup and certificates.  Just need to know how to code them and how to shoot them out when something is updated.
0
Comment
Question by:BTMExpert
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
mad_mac earned 500 total points
ID: 36503264
With a local notification it is just a case of instantiating a UILocalNotification and scheduling it with the scheduleLocalNotification method of UIApplication, it's very simple to do.

Push notification are generally generated in a back end service somewhere and not on the local device, such as an auction site.  Good tutorial on push can be found here http://mobile.tutsplus.com/tutorials/iphone/iphone-sdk_apns/

0
 

Author Comment

by:BTMExpert
ID: 36503295
i seen another tutorial saying edit the Edit Active Target  but i don't know how in xcode 4.1.  It doesn't look the same so i don't know how to go about that.  I want to make my own server to push to apple's server.  Just need to know how to go about that.  I understand the local notifications now, thanks
0
 
LVL 5

Expert Comment

by:mad_mac
ID: 36503439
In terms of editing your target, select the top level project object, normally your project name.  The editor space should change to have a split pane view, the left pane has project and targets in it.  Select the target and edit away...

To do what you would like to do you will need to revert to good old C code.  Have a look at this tutorial on how to setup a basic push server in C.  http://blog.toshsoft.de/index.php?/archives/3-Sending-Apple-Push-Notifications-APN-in-C-Updated-Using-CA-Cert.html
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

CocoaPods is the best way to manage library dependencies in iOS and OS X projects. By using cocoa pods there is no need of downloading the code from github and copying to your project. There are plenty of open source libraries now available with C…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question