Will the push notification not pop up if the APP is running in the foreground during iOS push? Answer: No. When the app is not completely closed ↓ When the app is in the foreground: notifications can be received, but not displayed app is in the background: notifications can be received and displayed When the app is completely closed ↓ Click the program icon: enter the app main interface Click on the notification: Enter the details page
If your application is in the foreground and receives a push, then the application:didReceiveRemoteNotification: method of your appdelegate will be called by the system and passed to you the push content. Just handle the push in this method
Will the push notification not pop up if the APP is running in the foreground during iOS push?
Answer: No.
When the app is not completely closed ↓
When the app is in the foreground: notifications can be received, but not displayed
app is in the background: notifications can be received and displayed
When the app is completely closed ↓
Click the program icon: enter the app main interface
Click on the notification: Enter the details page
If your application is in the foreground and receives a push, then the application:didReceiveRemoteNotification: method of your appdelegate will be called by the system and passed to you the push content. Just handle the push in this method
You can try the pop-up effect when the iOS front desk receives a push ^_^
https://github.com/Yasashi/EB...