Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I was wondering - is there a way to force how a push notification will appear to the iPhone user? There are 3 options in settings for the user to choose - none, some kind of top banner that dissappears after a short time and an alert with buttons.

The problem is, while developing an application for iPhone, I found out that using the didReceiveRemoteNotification function did not return any results if I didn't click on that top banner. This doesn't seem to be firing up even when the application is taken to the foreground.

I need those data provided by this function to act upon in my application.

Thanks for your time!

share|improve this question

closed as off topic by patrix, Loïc Wolff, jmlumpkin, Nathan Greenstein May 18 '12 at 17:56

Questions on Ask Different are expected to relate to Apple hardware or software within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

3  
This belongs on StackOverflow. –  Moshe May 18 '12 at 15:11
1  
Welcome to Ask Different! Questions about programming, development, and listing your apps on the App Store are off topic for Ask Different.Please take a look at the FAQs for more info. Thanks. –  Nathan Greenstein May 18 '12 at 17:56

1 Answer 1

up vote 2 down vote accepted

Yep, there is no way for you to do this. Check this answer and the comments below. Probably you should implement another method to poll for events while app is running.

ps. A more appropriate place to ask this question would be StackOverflow.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.