Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the Push-Notification list on iOS8

Is it possible to get the text of all the received push notifications on iOS 8?

Has anyone found something on the documentation provided by Apple?

I know that the notification list can be obtained using a bluetooth device, but I'd like to get it locally.

like image 457
Massimo Piazza Avatar asked Jun 04 '14 23:06

Massimo Piazza


People also ask

How do I get notifications list on my iPhone?

Find your notifications in Notification CenterOn the Lock Screen: Swipe up from the middle of the screen. On other screens: Swipe down from the top center. Then you can scroll up to see older notifications, if there are any.

How do I pull up old push notifications?

Pull down your Notification Shade once and then scroll down to the bottom of your notifications. You should now see a History button (Figure 3). The History button has been added to your Notification Shade. Tap History to access your past 24 hours of notifications (Figure 4).

How do I see Notification History on Samsung?

Open the Settings application and tap Notifications. Tap Advanced Settings. Tap Notification history.


1 Answers

Its very simple try this in Xcode6:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    //-- Set Notification
        if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
        {
            [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
            [[UIApplication sharedApplication] registerForRemoteNotifications];
        }
        else
        {
            [[UIApplication sharedApplication] registerForRemoteNotificationTypes:
             (UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert)];
        }

     //--- your custom code
     return YES;
}
like image 92
Rajesh Loganathan Avatar answered Oct 02 '22 13:10

Rajesh Loganathan