Skip to content

Commit

Permalink
register for push notifications on iOS even if UserNotifications denied
Browse files Browse the repository at this point in the history
  • Loading branch information
JGreenlee committed Dec 19, 2024
1 parent 97726aa commit f77c81d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.cordovabuild.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion www/js/splash/pushNotifySettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -31,8 +32,8 @@ function startupInit() {
ios: {
badge: true,
sound: true,
vibration: true,
clearBadge: true,
forceRegister: true,
},
android: {
iconColor: '#008acf',
Expand Down

0 comments on commit f77c81d

Please sign in to comment.