question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Notifications not firing in iOS 14

See original GitHub issue

WARNING: IF YOU IGNORE THIS TEMPLATE, WE’LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!

Provide a general summary of the issue.

Your Environment

  • Plugin version: 0.9.0-beta.2
  • Platform: iOS
  • OS version: 14.0.1
  • Device manufacturer / model: Apple
  • Cordova version (cordova -v): 9.0.0
  • Cordova platform version (cordova platform ls): android 8.1.0 browser 6.0.0 ios 5.1.1
  • Plugin config
  • Ionic Version (if using Ionic)

Expected Behavior

Permission dialog appears on first schedule of a notification and the app shows up in the list of apps receiving notifications under Settings > Notifications

Actual Behavior

Dialog does not appear and the app doesn’t show up in the list of apps receiving notification.

Steps to Reproduce

Try running under iOS 14.

Context

Here is the code I am using: export function scheduleNotification(notificationId, title, content, deliveryDateTime) { if (typeof cordova !== ‘undefined’ && cordova.plugins.notification != undefined) { let delivery = new Date(deliveryDateTime.ts) cordova.plugins.notification.local.hasPermission(function (granted) { if (granted) { cordova.plugins.notification.local.schedule({ id: notificationId, title: title, text: content, trigger: { at: delivery }, foreground: true });

    console.log("Schedule #" + notificationId + ": " + content + " at " + delivery);  
  }
});

} }

Debug logs

There are no crash logs – just no notifications or permissions requests.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
mikenowakmecommented, Nov 23, 2020

It worked better when I manually requested permission. I am not using phonegap should there be no conflict there.

0reactions
Maqsyocommented, Mar 25, 2021

@manel00 cordova plugin add https://github.com/timkellypa/cordova-plugin-local-notifications.git should work for you

Read more comments on GitHub >

github_iconTop Results From Across the Web

iPhone Notifications Stopped Working After iOS 14 - iKream
iPhone Notifications Stopped Working After iOS 14 · First solution: Try Doing the Forced Restart · Second solution: Make sure Silent Mode is...
Read more >
Notifications not working in iPhone 14/Pro/Max: How to Fix [10 ...
How to Fix Notifications not working in iPhone 14/Plus/Pro/Max · FIX 1: Restart & Force Reboot Device · FIX 2: Toggle Notifications ·...
Read more >
Notifications not working on iPhone 14? 9 Ways to Fix
1. Ensure Notifications Are Enabled · 2. Check That Focus is not enabled · 3. Disable Notification Summary · 4. Reboot Your iPhone...
Read more >
Notifications not working in iOS 16? 9 Ways to fix it! - iGeeksBlog
To fix Notifications not working on iPhone running iOS 16, 1. Turn off Focus on iPhone, 2. Add exceptions to Focus, 3.
Read more >
5 ways to fix iPhone notifications when you're not receiving them
5 ways to fix iPhone notifications when you're not receiving them · 1. Open the Settings app. · 2. Tap Notifications. · 3....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found