Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I'm developing an app that uses ExactTarget MobilePush, but when I have the app running in the foreground and test push, I don't see anything on the screen. Is my push coming through? It seems to work ok when the app is in the background.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

By default, the iOS behavior is is to not show an alert if the app is running when a push comes in. MobilePush respects this default behavior, and will process the push but not display an alert. If you'd like to change this, you may do one of the two following things.

  1. In the SDK, call the following method to tell the SDK to show an alert: [[ETPush pushManager] shouldDisplayAlertViewIfPushReceived:YES];
  2. Implement your own UIAlertView in your app delegate's application:didReceiveRemoteNotification: method.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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