1.iOS decided to display the notice on the iphone or Apple Watch;
2. The system provides a default interface to display information from notifications, and app can customize the notification interface;
3. Local or remote notification arrival, display Short-look interface
Short-look Interface:
1. When the user first view the notice, the system will display the Short-look interface;
2. Non-scrolling and cannot be customized;
3. Display the application icon, name, title;
4. Users continue to view the notice, the system from the Short-look interface quickly turned to the Long-look interface;
Short-look Interface Header (title)
1. The title provides a brief description of the notice;
2. Title of local Notice: Use Nslocalnotification Alerttitle property;
3. The title of remote notification: In payload, the key in alert dictionary is title;
Long-look interface
1. Can scroll the interface, showing the content of the notification and any related buttons;
2. The default interface includes app icon, notification title, information hint;
3. The notification interface is divided into three parts: Sash (top), content area (middle part), bottom areas (bottom)
(1) Sash: including the app icon and name, the default is transparent, but you can set the color in the custom notification interface;
(2) Content area: Displays the details of the notice. For a custom interface, you can determine the location of this part;
(3) Bottom area: Contains a dismiss button (provided by the system), and other buttons;
GitHub home: https://github.com/chenyufeng1991. You are welcome to visit.