SplitViewController and Push Notifications

Discussion in 'iOS Programming' started by willemVP, Nov 22, 2011.

  1. willemVP macrumors newbie

    Joined:
    Aug 4, 2011
    #1
    We've set up a development server that sends out push notifications to our devices.
    The body contains an id to show the details of the specified event.
    Everything works fine on the iPhone but we have problems on the iPad.

    The appDelegate had a method that is triggered when a RemoteNotification is received. When we click our notification (while the app is running in background) than the above method is triggered but our detailViewController isn't set yet. This way we can't get our detailviewController to open up with our specific event.

    Has anybody else tried this before?
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    If the app is running in the background, why wouldn't the detailViewController be set yet? Or is it just that you no longer have a reference to it? If the latter, this notification need might be a good reason to keep such a reference.
     

Share This Page