andrehtissot / cordova-plugin-fcm-with-dependecy-updated

Google FCM Push Notifications Cordova Plugin
MIT License
208 stars 277 forks source link

Incorrect number of unread notifications in iOS #291

Open simcario opened 2 years ago

simcario commented 2 years ago

Describe the bug The number of unread notifications shown on the app icon in IOS is always the same (42). In Android is OK

Expected behavior

When I receive a new notification in the background, the number of notifications to read on the app icon is always 42 on iOS. On android the problem is not there

Environment (please complete the following information):

Package.json "devDependencies": { "cordova-android": "^10.1.2", "cordova-ios": "^6.2.0", "cordova-plugin-actionsheet": "^2.3.3", "cordova-plugin-android-permissions": "^1.1.3", "cordova-plugin-androidx-adapter": "^1.1.3", "cordova-plugin-app-version": "^0.1.14", "cordova-plugin-camera": "^6.0.0", "cordova-plugin-device": "^2.1.0", "cordova-plugin-dialogs": "^2.0.2", "cordova-plugin-email-composer": "^0.10.1", "cordova-plugin-fcm-with-dependecy-updated": "^7.8.0", "cordova-plugin-googlemaps-sdk": "github:mapsplugin/cordova-plugin-googlemaps-sdk", "cordova-plugin-inappbrowser": "^5.0.0", "cordova-plugin-ionic-webview": "^5.0.0", "cordova-plugin-network-information": "^3.0.0", "cordova-plugin-safariviewcontroller": "^2.0.0", "cordova-plugin-screen-orientation": "^3.0.2", "cordova-plugin-splashscreen": "^6.0.0", "cordova-plugin-whitelist": "^1.3.4", "cordova-support-android-plugin": "~1.0.0", "cordova.plugins.diagnostic": "^6.1.1", "es6-promise-plugin": "^4.2.2", "uk.co.workingedge.phonegap.plugin.launchnavigator": "^5.0.6" }, "cordova": { "plugins": { "cordova-plugin-whitelist": {}, "cordova-plugin-splashscreen": {}, "cordova-plugin-screen-orientation": {}, "cordova-plugin-android-permissions": {}, "cordova-plugin-geolocation": { "GPS_REQUIRED": "false" }, "cordova-plugin-network-information": {}, "cordova.plugins.diagnostic": { "ANDROIDX_VERSION": "1.0.0", "ANDROIDX_APPCOMPAT_VERSION": "1.3.1" }, "cordova-plugin-androidx-adapter": {}, "cordova-plugin-device": {}, "cordova-plugin-ionic-webview": {}, "cordova-plugin-safariviewcontroller": {}, "cordova-plugin-fcm-with-dependecy-updated": { "ANDROID_DEFAULT_NOTIFICATION_ICON": "@mipmap/ic_launcher", "ANDROID_FCM_VERSION": "21.0.0", "ANDROID_FIREBASE_BOM_VERSION": "26.0.0", "ANDROID_GOOGLE_SERVICES_VERSION": "4.3.4", "ANDROID_GRADLE_TOOLS_VERSION": "4.1.0", "IOS_FIREBASE_MESSAGING_VERSION": "~> 7.4.0" }, "cordova-open-native-settings": {}, "cordova-plugin-camera": { "ANDROIDX_CORE_VERSION": "1.6.+" }, "cordova-plugin-email-composer": {}, "uk.co.workingedge.phonegap.plugin.launchnavigator": { "GOOGLE_API_KEY_FOR_ANDROID": "AIzaSyB8GNukOLbfIcXZaXqUumM7UOYGSBJ31aA", "OKHTTP_VERSION": "3.12.0", "LOCATION_USAGE_DESCRIPTION": "This app requires access to your location for navigation purposes" }, "cordova-plugin-app-version": {}, "cordova-plugin-inappbrowser": {}, "cordova-plugin-preview-any-file": {} }, "platforms": [ "ios", "android" ] }, "dependencies": { "cordova-open-native-settings": "1.5.5", "cordova-plugin-add-swift-support": "2.0.2", "cordova-plugin-androidx": "3.0.0", "cordova-plugin-preview-any-file": "0.2.9" }