node-apn | : calling : Apple Push Notification module for Node.js | Notification library

 by   node-apn JavaScript Version: 3.0.0 License: MIT

kandi X-RAY | node-apn Summary

kandi X-RAY | node-apn Summary

node-apn is a JavaScript library typically used in Messaging, Notification applications. node-apn has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can install using 'npm i node-apn' or download it from GitHub, npm.

[][node-apn].
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              node-apn has a medium active ecosystem.
              It has 4342 star(s) with 699 fork(s). There are 112 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 64 open issues and 483 have been closed. On average issues are closed in 122 days. There are 23 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of node-apn is 3.0.0

            kandi-Quality Quality

              node-apn has 0 bugs and 0 code smells.

            kandi-Security Security

              node-apn has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              node-apn code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              node-apn is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              node-apn releases are available to install and integrate.
              Deployable package is available in npm.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed node-apn and discovered the below as its top functions. This is intended to give you an instant insight into node-apn implemented functionality, and help decide if they suit your requirements.
            • Configuration .
            • Prepares and returns a new token
            • Decode a PNCCert .
            • Parses an api key
            • Create a certificate from an ASN .
            • Client constructor .
            • Find an APN key from the package .
            • Validates the given credentials
            • Configure address .
            • Validates a token
            Get all kandi verified functions for this library.

            node-apn Key Features

            No Key Features are available at this moment for node-apn.

            node-apn Examples and Code Snippets

            No Code Snippets are available at this moment for node-apn.

            Community Discussions

            QUESTION

            parse community node-apn fork - send job hangs
            Asked 2020-Oct-26 at 12:08

            We are using the parse fork of node-apn lib ( https://github.com/parse-community/node-apn ) - we switched a year ago to this fork because our actual problem - but now its back.

            We are sending around 1.000.000 notifications, separated to different sub-jobs and some of them just hang while sending to apple, after calling apnProvider.send() ... we don't get an answer/callback.

            The problem was happen often end of last year and the whole year it worked fine - and beginning last weekend the problem came back - without any change on our side :-( from 40 processes 1 or 2 just break up there work.

            We implemented a workaround, a watchdog that sees the hanging process after 30 seconds and stops it, but this is a bad solution. I wanted to ask if someone has any idears to fix it or to find out the real reason. I dont get an error event or something.

            We tested different nodejs versions and working on ubuntu server - also tested differend versions.

            best regards.

            Code parts:

            Initialisation:

            ...

            ANSWER

            Answered 2020-Oct-26 at 12:08

            The issue ist now handled in the new version 4.0.0 of the node-apn fork from the parse community. New version handles the timeout of the http2 connections.

            Issue: https://github.com/parse-community/node-apn/issues/24

            Source https://stackoverflow.com/questions/64023486

            QUESTION

            Independent Watchkitapp APNS push notification successful send but notification does not receive in Apple Watch
            Asked 2020-Oct-07 at 01:23

            I have created an independent watchkitapp in XCode, installed in apple watch and successfully sent push notification without errors from Pusher app (also in node-apn) but the notification does not arrive in app. (Tried another app for iOS and remote push notification successfully received in iOS app)

            These are the steps i took

            1. In my watchkitapp I did WKExtension.shared().registerForRemoteNotifications() and took the device token

            2. UNUserNotificationCenter.current().requestAuthorization and allowed push notification on apple watch. ofcourse I set UNUserNotificationCenter.current().delegate to the InterfaceController (I tried Local Notification and local notifications display normally on the watch)

            3. On XCode watchkitapp.watchkitextension I added Push Notification on capabilities

            4. In Apple Developer page I created app id mirroring the watchkitapp bundle (not the watchkitextension one). In my case apple automatically created App Id in the server but I removed and recreated it to make sure

            5. Checked the Apple Push Notification service and generated Development SSL Cert

            6. Downloaded the Development SSL Cert and installed in keychain

            7. Opened the Pusher app and selected the installed Development SSL Cert from the list. Ran the apple watch app and obtained the Token Id... sent the payload and it says the payload is sent

            8. Tried to restart mac, iphone, apple watch, unpairing apple watch, reinstalling app but the result is the same... push is sent but does not receive in apple watch

            anybody can help me how can I fix this?

            ...

            ANSWER

            Answered 2020-Oct-07 at 01:23

            Finally, I got this successfully. I use node-apn to send from server.
            Here are the worth noticing things:

            1. create app id of the watchkitapp bundle in Apple Developer page

            2. install the latest version of: node-apn,

              "dependencies": { "apn": "git+https://github.com/node-apn/node-apn.git#3.0.0", [...] }

            3. should set apns-push-type

            notification.pushType (Required when delivering notifications to devices running iOS 13 and later, or watchOS 6 and later. Ignored on earlier system versions.)

            The type of the notification. The value of this header is alert or background. Specify alert when the delivery of your notification displays an alert, plays a sound, or badges your app's icon. Specify background for silent notifications that do not interact with the user.

            The value of this header must accurately reflect the contents of your notification's payload. If there is a mismatch, or if the header is missing on required systems, APNs may delay the delivery of the notification or drop it altogether.

            Source https://stackoverflow.com/questions/64226931

            QUESTION

            Swift iOS app receive push notification when app is inactive and run code
            Asked 2020-May-16 at 11:41
            Platform

            Swift 5

            iOS 13+

            xCode 11

            Node v14.2.0

            Firebase/Firestore latest

            Setting

            Alice send push notification to Bob, while Bob's phone is .inactive or .background. Bob's phone should get notification and immediately trigger code.

            Problem

            This question has plenty of answers, but most of what I can find revolves around hacking the PushKit and CallKit native API to send .voIP pushes. Per this question (iOS 13 not getting VoIP Push Notifications in background), Apple no longer allow you to send .voIP pushes w/o triggering CallKit's native phone ring routine.

            On iOS side, I have the following bits in AppDelegate.swift

            ...

            ANSWER

            Answered 2020-May-16 at 11:41

            You need to enable the background mode - remote notifications capability.

            To receive background notifications, you must add the remote notifications background mode to your app. In the Signing & Capability tab, add the Background Modes capability, then select the Remote notification checkbox.

            Enabling the remote notifications background mode:

            For watchOS, add this capability to your WatchKit Extension.

            Source: Pushing Background Updates to Your App | Apple Developer Documentation

            Source https://stackoverflow.com/questions/61826661

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install node-apn

            [npm][] is the preferred installation method:.
            This readme is a brief introduction, please refer to the full [documentation](doc/apn.markdown) in doc/ for more details. If you have previously used v1.x and wish to learn more about what’s changed in v2.0, please see [What’s New](doc/whats-new.markdown).

            Support

            You are encouraged to read the extremely informative [Troubleshooting Push Notifications][tn2265] Tech Note in the first instance, in case your query is answered there.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i node-apn

          • CLONE
          • HTTPS

            https://github.com/node-apn/node-apn.git

          • CLI

            gh repo clone node-apn/node-apn

          • sshUrl

            git@github.com:node-apn/node-apn.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link