Friday, December 9, 2022
HomeiOS Developmentandroid - Options for cordova-push-plugin for foreground notifications on ios?

android – Options for cordova-push-plugin for foreground notifications on ios?


I’ve been utilizing https://github.com/phonegap/phonegap-plugin-push (deprecated) and just lately swapped to the extra lively fork https://github.com/havesource/cordova-plugin-push.

Nevertheless i want my app to have the ability to obtain notifications whereas in foreground. This works nice on Android with the foreground variable however it doesn’t work on iOS and there are a number of open points about it on the plugin. Most individuals appear to do fast hacks the place they add checks in “on(“notification”) for foreground and make their very own popup within the app. This works however i need it to look within the notification heart with vibration in keeping with the customers setting like what occurs on android with the “foreground” variable. so the query is.

Is there a plugin that works with cordova that does this? Or am i able to configure https://github.com/havesource/cordova-plugin-push to work in foreground with iOS gadgets?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

three + 14 =

Most Popular

Recent Comments