When the Apple application officially published the iOS application is open, and in the foreground new messages from other contacts launch stockpiles, iOS notification notification banner of its own. See image below.
Is this possible in third-party apps on the App Store? Local and / or push notifications for your application when your application is open and in the foreground ?
When testing my application, notifications are received, but the iOS user ID is not displayed .
But this behavior displayed in Apple's official messaging app:

The local and remote notification programming guide reports:
When the operating system sends a local notification or remote notification, and the target application does not work in the foreground , it can send a notification to the user through alert , icon icon number or sound.
If the application runs in the foreground when the notification is delivered, the application delegate receives a local or remote notification.
So yes, we can receive notification data in the foreground. But I do not see the opportunity to present the iOS notification notification user interface .
-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
Are messages using the private API used to display a warning in the foreground?
For the purpose of this question , please do not offer any third-party toast alerts on github, etc. I'm only interested in this if it can be done using the iOS Inventory Local or Push Notification UI when your application is open and in the foreground.
ios uikit toast apple-push-notifications uilocalnotification
pkamb Jun 15 '15 at 18:52 2015-06-15 18:52
source share