ios - Is there a way to get the last push notification when my app starts up? -


in scenario user did not swipe push notification before disappeared, there way retrieve last 1 sent device app? can go notification center , see last few push notifications app there, there way can retrieve last 1 when app opens?

there no way retrieve past push notifications.

typically, isn't needed. once launched, app can communicate server see what's new.

  • if app launched notification, app receive push notification passed in option key uiapplicationlaunchoptionsremotenotificationkey app delegate method application:didfinishlaunchingwithoptions.

  • if app running , in foreground when push notification arrives, app delegate application:didreceiveremotenotification called

  • with ios 7 , later, if notification type content-available , have background app refresh capability turned on (and user has not disabled background app refresh), app in background application:didreceiveremotenotification


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -