@evennit/notifee-expo-plugin

中文文档
3.8.0发布于 2026/02/18MITCommonJS近 30 天下载 1.2万

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

原始使用文档
文档目录7 节
  1. 🧩 Install 🧩
  2. 🛠️ Config 🛠️
  3. 🔨 Rebuild your app 🔨
  4. Props
  5. 🤩 STARS 🤩
  6. 💸 Feeling grateful and want to support me 💸
  7. 📜 License 📜

🔥👹 Notifee-Expo-Plugin 👹🔥

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

PropertyDescription
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?: booleanEnables communication notifications, which adds the necessary configurations for communication notifications as mentioned in https://github.com/invertase/notifee/pull/526.
appleDevTeamId?: stringAutomatically signs the app and the notification service extension targets with the provided Apple developer team ID.
customNotificationServiceFilePath?: stringSpecifies 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
verbose?: booleanEnables verbose logging output during the plugin configuration process. When set to true, the plugin will log detailed information about each step. Defaults to false.

🤩 STARS 🤩

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

💸 Feeling grateful and want to support me 💸

You can support me via ko-fi.

📜 License 📜

This package is made available under the MIT license.

Happy coding :)

版本与发布记录

@evennit/notifee-expo-plugin 共发布 9 个版本,首次发布于 2024/07/05;过去 12 个月发布了 1 个版本。

版本发布日期距今
3.8.0latest2026/02/188 个月前
3.7.32025/11/031 年前
3.7.22024/10/252 年前
3.7.12024/10/252 年前
3.7.02024/07/062 年前
3.6.92024/07/052 年前

关于 @evennit/notifee-expo-plugin 的常见问题

@evennit/notifee-expo-plugin 是什么?

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

如何安装 @evennit/notifee-expo-plugin?

在项目目录运行 npm install @evennit/notifee-expo-plugin,或使用 pnpm add / yarn add / bun add。

@evennit/notifee-expo-plugin 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/evennit__notifee-expo-plugin 是否存在。

@evennit/notifee-expo-plugin 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@evennit/notifee-expo-plugin 可以商用吗?

@evennit/notifee-expo-plugin 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@evennit/notifee-expo-plugin 的下载量有多少?

根据 npm 官方下载统计,@evennit/notifee-expo-plugin 在 2026/10/14 – 2026/11/12 这 30 天内被下载 11,787 次,日均约 393 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@evennit/notifee-expo-plugin 还在维护吗?

最新版本 3.8.0 发布于 2026/02/18(8 个月前);至今共发布 9 个版本,其中过去 12 个月发布了 1 个;首次发布于 2024/07/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。