Solved

push and local notifications

Posted on 2011-09-07
3
520 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Preface   In the first 100 days of the Macintosh release in January 1984, Apple sold 72,000 of the computers. Relatively cheap, easy-to-use personal computer with a graphical operating system. I've never seen this model. I did see this one:   …
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now