Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
iOS App is running in 2 mode either the user is interacting with app (foreground) or minimize the app (background). if we are talking about the firebase push notification then we have to handle by other way because iOS 10 to above provide the custom local notification for handling this type of issue when app is running in foreground.
Here I have taken the example of Firebase Push Notifaction.
1: First Set up firebase Push notification in App.
2: Open Appdelegate.swift File:
write this Code for checking the App is running on iOS 10 to above or less .
3: It will Check weather your app is running in iOS 10 to above or less if iOS app is running on iOS 10 or above then it will assigned the local push notification for handle the foreground app.
4: Now return the local push notification type like this:
Note: UNNotificationPresentationOptions.alert – it will return a alert.
5: It will work when your app is running on foreground and someone send the notification .
6: Now we have to handle the Tap also for this write this function
Note: This method will call when the user tap on foreground Notification.
7: Fire base also provide the other function for iOS 10 to above if token expire , for this write this method to handle this type of case.
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Webkul is a truly trusted and supported IT Company to develop business ideas for e-commerce. They provide professional support after deploying the solution to production and be responsible to act for fixing the reported issues or system errors. We highly encourage to deal with Webkul for business development.
Hussein Zawia
Co-founder, 24Dokan
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.