Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

This belongs on StackOverflow. – Moshe May 18 '12 at 15:11
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
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.