Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

onesignal-expo-plugin

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onesignal-expo-plugin - npm Package Compare versions

Comparing version 1.0.0-beta6 to 1.0.0-beta7

build/examples/my-app/App.js

2

build/onesignal/withOneSignalIos.js

@@ -25,3 +25,3 @@ "use strict";

const withRemoteNotificationsPermissions = (config) => {
const BACKGROUND_MODE_KEYS = ["external-accessory", "remote-notification"];
const BACKGROUND_MODE_KEYS = ["remote-notification"];
return (0, config_plugins_1.withInfoPlist)(config, (newConfig) => {

@@ -28,0 +28,0 @@ if (!Array.isArray(newConfig.modResults.UIBackgroundModes)) {

@@ -36,3 +36,3 @@ /**

) => {
const BACKGROUND_MODE_KEYS = ["external-accessory", "remote-notification"];
const BACKGROUND_MODE_KEYS = ["remote-notification"];
return withInfoPlist(config, (newConfig) => {

@@ -39,0 +39,0 @@ if (!Array.isArray(newConfig.modResults.UIBackgroundModes)) {

{
"name": "onesignal-expo-plugin",
"version": "1.0.0-beta6",
"version": "1.0.0-beta7",
"description": "The OneSignal Expo plugin allows you to use OneSignal without leaving the managed workflow. Developed in collaboration with SweetGreen.",

@@ -37,3 +37,5 @@ "main": "./app.plugin.js",

},
"dependencies": {}
"dependencies": {
"react-native-onesignal": "^4.3.1"
}
}
<h1 align="center">Welcome to onesignal-expo-plugin 👋</h1>
<p>
<img alt="Version" src="https://img.shields.io/badge/version-1.0.0--beta4-blue.svg?cacheSeconds=2592000" />
<img alt="Version" src="https://img.shields.io/badge/version-1.0.0--beta7-blue.svg?cacheSeconds=2592000" />
<a href="https://github.com/OneSignal/onesignal-expo-plugin#readme" target="_blank">

@@ -10,3 +10,3 @@ <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />

</a>
<a href="https://github.com/OneSignal/onesignal-expo-plugin/blob/master/LICENSE" target="_blank">
<a href="https://github.com/OneSignal/onesignal-expo-plugin/blob/main/LICENSE" target="_blank">
<img alt="License: MIT" src="https://img.shields.io/github/license/OneSignal/onesignal-expo-plugin" />

@@ -22,3 +22,6 @@ </a>

### 🏠 [Homepage](https://github.com/OneSignal/onesignal-expo-plugin#readme)
### 🖤 [npm](https://www.npmjs.com/package/onesignal-expo-plugin)
## 🚧 In Beta 🚧
## Install

@@ -30,4 +33,2 @@

**Note:** this does not install the [OneSignal SDK](https://github.com/OneSignal/react-native-onesignal).
## Configuration in app.json / app.config.js

@@ -37,2 +38,3 @@ ### Plugin

**app.json**
```json

@@ -53,2 +55,3 @@ {

**app.config.js**
```js

@@ -68,2 +71,7 @@ export default {

#### Plugin Options
* `mode`: used to configure [APNs environment](https://developer.apple.com/documentation/bundleresources/entitlements/aps-environment) entitlement.
- `"development"`
- `"production"`
### OneSignal App ID

@@ -84,2 +92,3 @@ Add your OneSignal App ID to your [Expo constants via the `extra` param](https://docs.expo.dev/versions/latest/config/app/):

```js
import OneSignal from 'react-native-onesignal';
import Constants from "expo-constants";

@@ -109,2 +118,2 @@ OneSignal.setAppId(Constants.manifest.extra.oneSignalAppId);

Copyright © 2021 [OneSignal](https://github.com/OneSignal).<br />
This project is [MIT](https://github.com/OneSignal/onesignal-expo-plugin/blob/master/LICENSE) licensed.
This project is [MIT](https://github.com/OneSignal/onesignal-expo-plugin/blob/main/LICENSE) licensed.

@@ -13,4 +13,5 @@ {

"**/__mocks__/*",
"**/__tests__/*"
"**/__tests__/*",
"examples"
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc