Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-22-2009, 09:36 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 26
fede is on a distinguished road
Default Push Notifications - Starting out. HELP!

Hello, I've recently started developing iphone applications for a project at school and I've been having some problems testing push notifications. I've read I need to get some SSL certificate from the program portal, but I cannot find the link AppID where I am supposed to get them. Is it really necesary even though I am just starting out making some tests in XCode? What else do I need to run push notifications?
I've started coding the client side, but I cannot register for remote notifications. (I run registerForRemoteNotificationTypes:..., but it cannot register) I think it is because I donīt have the certificates, but I really donīt know.

Thanks!!
fede is offline   Reply With Quote
Old 09-22-2009, 10:48 AM   #2 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 11
raviram is on a distinguished road
Default

Are you a subscribed member at iPhone Dev Center - Apple Developer Connection ? The iPhone Developer Program Portal has everything you need to start testing push notifications.

You obviously cannot do that in the simulator, however to install your app on a test device, you will need a 'Provisioning Profile' which you can also get at the iDPP.

If you don't have access to the developer program then I am sorry to say you are not going to be able to do much! Individual membership costs only $99 and is WELL worth it if you are going to be developing anything.

Hope this helps
raviram is offline   Reply With Quote
Old 09-23-2009, 07:35 AM   #3 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 26
fede is on a distinguished road
Default

Thanks a lot for the quick reply, I was a bit lost and I didn't even know what I had to ask!

My idea was to test push ntifications before I decided if I would develop anything, but by what you are telling me that is not possible. Does the individual membership include everything you need to develop and deploy apps (for client and provider) with push notifcations?

Thanks again!
fede is offline   Reply With Quote
Old 09-23-2009, 07:50 AM   #4 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 11
raviram is on a distinguished road
Default

ABSOLUTELY!!

The $99 gives you access to the everything. Including creating and publishing your own apps to the App store.

Good luck
raviram is offline   Reply With Quote
Old 09-23-2009, 07:50 AM   #5 (permalink)
Humbled Student
 
Dutch's Avatar
 
Join Date: Apr 2009
Location: Long Island, NY
Age: 32
Posts: 883
Dutch will become famous soon enough
Send a message via AIM to Dutch
Default

Quote:
Originally Posted by fede View Post
Thanks a lot for the quick reply, I was a bit lost and I didn't even know what I had to ask!

My idea was to test push ntifications before I decided if I would develop anything, but by what you are telling me that is not possible. Does the individual membership include everything you need to develop and deploy apps (for client and provider) with push notifcations?

Thanks again!
Yes.. there is a provisioning/credentialing/development process that needs to take place before you can send pushes. This involves
  1. signing up as a developer
  2. being accepted
  3. creating your app(s) in the developer portal
  4. enabling pushes for them in the develop portal
  5. downloading development & distribution certificates in the develop portal
  6. converting certificates to .pem files (using openssl or something similar)
  7. creating a "Push Server" process (using just about any platform - vb, php, xcode, etc..) that uses these certificates to establish a secure connection to apple's servers.
  8. Matching up Bundle IDs between your app and the dev portal
  9. Developing iphone code to handle the incoming pushes

Becoming a developer lets you do all of that fun stuff.
Dutch is offline   Reply With Quote
Old 09-23-2009, 04:51 PM   #6 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 26
fede is on a distinguished road
Default

Ok, I guess I'll have to get a licence then. For what I've read the sandbox enviroment acts as a virtual device, so I guess that for testing I don't need to purchase a device right now. I am planning on purchasing one, but I don't have the money yet. Is that right? Can I test my push apps without a real device?
fede is offline   Reply With Quote
Old 09-24-2009, 04:26 AM   #7 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 11
raviram is on a distinguished road
Default

Hi

I have no idea where you have read this, but it is just not true.

The 'sandbox' is the Apple Push Notification SERVER provided by Apple for us to test the notifications - you send data to gateway.sandbox.push.apple.com

Once the app is released, you then use the main server at gateway.push.apple.com to manage your push notifications.

I am sorry to say that without a device, you cannot do anything with APNS. Start saving those pennies mate :-)
raviram is offline   Reply With Quote
Old 09-24-2009, 02:55 PM   #8 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 26
fede is on a distinguished road
Default

Quote:
Originally Posted by raviram View Post
Hi

I have no idea where you have read this, but it is just not true.

The 'sandbox' is the Apple Push Notification SERVER provided by Apple for us to test the notifications - you send data to gateway.sandbox.push.apple.com

Once the app is released, you then use the main server at gateway.push.apple.com to manage your push notifications.

I am sorry to say that without a device, you cannot do anything with APNS. Start saving those pennies mate :-)

I read it from the "Apple Push Notification Service Programming Guide".

At the "Sandbox and Production Enviroments" section it says:

"Sandbox: The sandbox environment is used for initial development and testing of the provider application. It provides the same set of services as the production environment, although with a smaller number of server units. The sandbox environment also acts a virtual device, enabling simulated end-to-end testing."

For virtual device I understand it refers to the iPhone device, the client
fede is offline   Reply With Quote
Old 09-24-2009, 11:46 PM   #9 (permalink)
Etched In
 
ansonl's Avatar
 
Join Date: May 2009
Location: Fremont, California
Posts: 245
ansonl is on a distinguished road
Arrow

It says the sandbox environment, the apple testing server, is a virtual device, not the iPhone simulator is a virtual device.
__________________
Look...

Apparent Etch
ansonl is offline   Reply With Quote
Reply

Bookmarks

Tags
apns, certificate, push notification

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 349
10 members and 339 guests
givensur, glenn_sayers, guusleijsten, ipodphone, jbro, mediaspree, mtl_tech_guy, Punkjumper, whitey99, yys
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,114
Posts: 402,883
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:33 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0