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.

Working Demo of Notification in Cordova 6.1.1 with iOS

See original GitHub issue

Hi, I can’t get notifications to fire in iOS with Cordova 6.1.1. Could someone upload a basic demo that works?

I’ve tried adding the plugin to the default cordova project template created with cordova create … but no luck. The only other plugin I added was cordova-plugin-console.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19

github_iconTop GitHub Comments

1reaction
ronycohencommented, May 22, 2016

On my side I have Cordova 6.1.1 and platform ios 4.1.1.

//icon and beep files in the www folder.

if(!!window.cordova) {
          cordova.plugins.notification.local.schedule({
              title: "New Message",
              message: "Hi, are you ready? We are waiting.",
              sound: "file://sounds/beep.caf",
              icon: "file://img/icon.png"
            });
        }

ON IOS :

The local notification plugin does :

  • display a notification in the notifications list

The local notification plugin does not :

  • vibration on notification
  • Displaying an alert or banner
  • Playing a sound
1reaction
funkjunkycommented, May 16, 2016

Same. Web has access to the cordova.plugins object, but not the ‘phonegap development’ ios app’ console.

I can’t believe how complicated it is to make notifications show up on a phone…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cordova iOS 6.1.0 Released!
We are happy to announce that we have just released Cordova iOS 6.1.0! This is Cordova's official platform for building iOS mobile ...
Read more >
Cordova-ios 6.1.1: inconsistent ca… | Apple Developer Forums
When I say inconsistent I mean that when I send a push notification the didReceiveRemoteNotification event isn't always fired and I can't understand...
Read more >
Push notifications not work in IOS IONIC 4 cordova
I'm using Ionic 4 and ANGULAR version 9 trying to send notification in IOS using Cordova. I did all the requirements to push...
Read more >
Apache Cordova iOS - GitHub
Cordova iOS is an iOS application library that allows for Cordova-based projects to be built for the iOS Platform. Cordova based applications are,...
Read more >
Cordova Plugin Setup - Airship Docs
iOS. Requires Xcode 13+; Minimum iOS version supported 11+; To use notifications: iOS APNs setup instructions. iOS only: Add your Apple Developer Account ......
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