iOS Question Retrieving the last Message coming from Remote Notification

Discussion in 'iOS Questions' started by Alberto Iglesias, Feb 23, 2015.

  1. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    How to get the last PUSH MESSAGE coming from Remote Notification?

    I try getting from the UIApplicationLaunchOptionsRemoteNotificationKey but not work, the APP Crash

    Dim ln As Notification = App.LaunchOptions.Get("UIApplicationLaunchOptionsRemoteNotificationKey")


    Something have an idea how I can start APP from remote notification AND GET the last message?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    But this event RAISED only is app is in background.

    When the APP is not running and you pressed the notification, this Event not fired
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    It is fired in both cases.
     
  5. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Not working, looking this video:

    Any ideas?

     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Are you clicking on the notification when you start the app?
     
  7. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    look the video... when the app is totally closed and you receive the push and touch the message, the app open normally but not fire the even
     
  8. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    I´m clicking in notification in iphone notification area then the APP open.

    I´m exactly the same in both cases, when the app is in background and when is close.

    the event fired only when is in background.
     
  9. Erel

    Erel Administrator Staff Member Licensed User

  10. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Now works perfectly!

    Thanks Erel!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice