UILocalNotification notification settings - using the slider or swipe buttons

I know this was asked before. But...

Until recently, I thought that the only possible and accepted Alert is the text with two buttons that I found in some applications that have another local warning.

So, I assume that there is an acceptable way to configure Lokal Alert. Is this correct or these applications simply “slipped” in the store, since I know that this happened earlier with the function, and then the application suddenly disappeared from the store.

I could not find anything.

Many thanks

+4
source share
1 answer

Like iOS 5:

  • When the UILocalNotification device UILocalNotification delivered while the device is locked, it appears on the locked screen using the swipe slider to open the application.
  • If a notification is delivered while using the device, it can be displayed either as a banner at the top of the screen, or as a warning with two buttons.
    • One button is always a cancel button.
    • Another button opens the application. You can change the text of this button by setting the alertAction property.
    • You can disable this action button in the notification by setting hasAction = NO in the notification).

There are no other methods available to receive notification of a notification, unless, of course, the device was hacked. In this case, a lot of things are possible.

Prior to iOS 5, only pop-up alert notifications were supported.

Due to the nature of iOS, it is technically impossible to deliver a notification in any other way or to set up an alert, since the delivery of notifications is processed by the system and the application does not have access to the system’s user interface and therefore cannot display any messages by itself. And even if you somehow manage it, Apple will not allow it.

Read the UILocalNotification docs here: http://developer.apple.com/library/ios/#DOCUMENTATION/iPhone/Reference/UILocalNotification_Class/Reference/Reference.html for more details.

+7
source

All Articles