npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@evennit/notifee-expo-plugin

v3.7.0

Published

This plugin will allow you to use Notifee with a notification service extension without needing to eject from Expo managed workflow.

Downloads

1,090

Readme

Are YOU looking for a plugin that will magically do these things for you without needing to eject your Expo app?:

  • Add a notification service extension with the Notifee service (Also useful because of low power mode on iOS disabling notifee onBackgroundEvent)
  • Automatically sign your main app and notification service extension targets with the apple dev team id you provided
  • Add iOS communication notifications capability to your app
  • Enable the iOS background modes of your liking
  • Populate your android app's folders with your notification icon

Well... you are at the right place!

🧩 Install 🧩

Assure you already have @notifee/react-native installed and then:

# npm
npm install @evennit/notifee-expo-plugin

#or

# yarn
yarn add @evennit/notifee-expo-plugin

🛠️ Config 🛠️

Add the plugin to your Expo config's plugin array like so:

app.config.js

{
  plugins: [
    [
      "@evennit/notifee-expo-plugin",
      {
        iosDeploymentTarget: "13.4", //<-- Must be the same as your main app target's iOS deployment target
        apsEnvMode: "development",
      },
    ],
  ];
}

app.config.json

{
  "expo": {
    "plugins": [
      [
        "@evennit/notifee-expo-plugin",
        {
          "iosDeploymentTarget": "13.4", //<-- Must be the same as your main app target's iOS deployment target
          "apsEnvMode": "development"
        }
      ]
    ]
  }
}

🔨 Rebuild your app 🔨

After installing and adding the plugin to your project's Expo config plugin array, you need to rebuild your iOS and Android apps:

npx expo prebuild

Now you should be good to go!

Props

| Property | Description | | -------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | apsEnvMode: string (required) | Sets the APS Environment Entitlement. Determines whether to use the development or production Apple Push Notification service (APNs). Values: "development" or "production" | | iosDeploymentTarget: string (required) | Sets the deployment target of the notification service extension for iOS. This should match the deployment target of the main app. Ex: "13.4" | | androidIcons?: NotifeeAndroidIcon[] | Specifies Android icons to be added to the appropriate resource folders for notification purposes. Each icon should be defined with a name, path, and type (large or small). Ex: [{ name: "ic_small_logo", path: "./assets/logo.png", type: "small" }] | | enableCommunicationNotifications?: boolean | Enables communication notifications, which adds the necessary configurations for communication notifications as mentioned in https://github.com/invertase/notifee/pull/526. | | appleDevTeamId?: string | Automatically signs the app and the notification service extension targets with the provided Apple developer team ID. | | customNotificationServiceFilePath?: string | Specifies the path to a custom notification service file, which should already include the necessary configurations for Notifee along with any additional customizations. You can build upon the default NotificationService.m file of this package. Ex: "./assets/notifee/NotificationService.m". | | backgroundModes?: string[] | Specifies the background modes to enable for the app. If not provided, the default value will be: ["remote-notification"]. On the other hand, an empty array [] will signal to the plugin to skip the backgroundModes step completly. iOS only. See possible values here: https://developer.apple.com/documentation/bundleresources/information_property_list/uibackgroundmodes |

🤩 STARS 🤩

If this was of any use to you, feel OBLIGATED to give it a 🌟 :))))).

💸 if (feelingGrateful && hasABuckToGive) 💸

📜 License 📜

This package is made available under the MIT license.