From f77c81dac5296f6cd839263df887a5a26b39aac4 Mon Sep 17 00:00:00 2001 From: Jack Greenlee Date: Thu, 19 Dec 2024 18:48:09 -0500 Subject: [PATCH] register for push notifications on iOS even if UserNotifications denied --- package.cordovabuild.json | 2 +- www/js/splash/pushNotifySettings.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.cordovabuild.json b/package.cordovabuild.json index f5bb583c7..ff4a7a787 100644 --- a/package.cordovabuild.json +++ b/package.cordovabuild.json @@ -104,7 +104,7 @@ } }, "dependencies": { - "@havesource/cordova-plugin-push": "git+https://github.com/havesource/cordova-plugin-push.git#4.0.0-dev.0", + "@havesource/cordova-plugin-push": "git+https://github.com/JGreenlee/cordova-plugin-push.git#force_register", "@messageformat/core": "^3.2.0", "@react-navigation/native": "^6.1.7", "@react-navigation/stack": "^6.3.17", diff --git a/www/js/splash/pushNotifySettings.ts b/www/js/splash/pushNotifySettings.ts index 5613867fb..30739c46a 100644 --- a/www/js/splash/pushNotifySettings.ts +++ b/www/js/splash/pushNotifySettings.ts @@ -19,6 +19,7 @@ import { publish, subscribe, EVENTS } from '../customEventHandler'; import { isConsented, readConsentState } from './startprefs'; import { readIntroDone } from '../onboarding/onboardingHelper'; import { AlertManager } from '../components/AlertBar'; +import '@havesource/cordova-plugin-push/types'; let push; @@ -31,8 +32,8 @@ function startupInit() { ios: { badge: true, sound: true, - vibration: true, clearBadge: true, + forceRegister: true, }, android: { iconColor: '#008acf',