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 03-16-2011, 04:53 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Location: Hyderabad
Posts: 11
dev4u is on a distinguished road
Send a message via Yahoo to dev4u Send a message via Skype™ to dev4u
Default How to turn on Push Notifications from app

Hi All,

I got a requirement to Prompt an Alert for Push Notification, when user install the App. As the user installed the application an Apple "PROMPT ALERT" Window pops up, informing the user that installed App uses Push Notifications and asks the user would like to proceed to use the app with their Push Notifications set to "ON".

If user selects allow in the alert box, Push Notification need to be Turned on automatically in the settings.(i.e we have to achieve it by coding.)

I am not having any idea how to achieve it. Please suggest at least the way of approach.
dev4u is offline   Reply With Quote
Old 03-16-2011, 05:42 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

it is automatically done by OS when detect that your app need to receive push notifications
__________________
dany_dev is offline   Reply With Quote
Old 03-16-2011, 07:38 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2010
Location: Hyderabad
Posts: 11
dev4u is on a distinguished road
Send a message via Yahoo to dev4u Send a message via Skype™ to dev4u
Default

Quote:
Originally Posted by dany88 View Post
it is automatically done by OS when detect that your app need to receive push notifications
Thanks Danny you are the Savior once again..

1) I have already got the Push Notification functionality in my code, but i am not getting the popup to turn on Notification settings automatically. i am checking in simulator. what will be the reason? what is the method that must be implemented to make this functionality work?

2) Does the popup alert works only when the app installed? if user does not allow first time, it wont appear again
dev4u is offline   Reply With Quote
Old 03-16-2011, 07:49 AM   #4 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

1) push notification will not work on simulator, so no popup is shown in simulator
2) yes, when user will start the first time, will see popup. if user doesn't allow, you can't do nothing for show it again.
__________________
dany_dev is offline   Reply With Quote
Old 03-16-2011, 07:50 AM   #5 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 66
dcool is on a distinguished road
Default

Quote:
Originally Posted by dev4u View Post
Thanks Danny you are the Savior once again..

1) I have already got the Push Notification functionality in my code, but i am not getting the popup to turn on Notification settings automatically. i am checking in simulator. what will be the reason? what is the method that must be implemented to make this functionality work?

2) Does the popup alert works only when the app installed? if user does not allow first time, it wont appear again
APNS works only on real device, otherwise return error on didFaildToRegisterForRemoteNotificationsWithError
dcool is offline   Reply With Quote
Old 03-16-2011, 08:19 AM   #6 (permalink)
Registered Member
 
Join Date: Dec 2010
Location: Hyderabad
Posts: 11
dev4u is on a distinguished road
Send a message via Yahoo to dev4u Send a message via Skype™ to dev4u
Default

Quote:
Originally Posted by dany88 View Post
1) push notification will not work on simulator, so no popup is shown in simulator
2) yes, when user will start the first time, will see popup. if user doesn't allow, you can't do nothing for show it again.
1) what is the method that must be implemented to make this functionality work?
even for the first time?

2) does uninstall and installing again make it work on the device?
dev4u is offline   Reply With Quote
Old 03-16-2011, 08:43 AM   #7 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

1) Make working your push notifications and you don't need anyother thing to have this ******* popup
2) i think that also reinstalling the app, the setting remain saved on iOS.
__________________
dany_dev is offline   Reply With Quote
Old 09-08-2011, 09:22 AM   #8 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 1
plato is on a distinguished road
Default

There is a setting for push notification in iPhone/Pad/Pod settings page.. You can configure which applications should receive push notifications and which are should not.
plato is offline   Reply With Quote
Reply

Bookmarks

Tags
push notifications

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: 358
12 members and 346 guests
Absentia, akphyo, apatsufas, BinHex, blueorb, fredidf, iAppDeveloper, iGamesDev, Kirkout, MarkC, mottdog, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

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