Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

push and local notifications

Posted on 2011-09-07
3
Medium Priority
?
549 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
mad_mac earned 2000 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

636 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