New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

expo-notifications

Package Overview
Dependencies
Maintainers
21
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-notifications - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

android/src/main/java/expo/modules/notifications/notifications/channels/AbstractNotificationsChannelsProvider.java

3

build/getExpoPushTokenAsync.js

@@ -31,2 +31,5 @@ import { Platform, CodedError, UnavailabilityError } from '@unimodules/core';

method: 'POST',
headers: {
'content-type': 'application/json',
},
body: JSON.stringify(body),

@@ -33,0 +36,0 @@ }).catch(error => {

7

build/index.d.ts

@@ -25,5 +25,6 @@ export { default as getDevicePushTokenAsync } from './getDevicePushTokenAsync';

export * from './NotificationPermissions';
export * from './NotificationChannelGroupManager.types';
export * from './NotificationChannelManager.types';
export * from './NotificationPermissions.types';
export * from './Notifications.types';
export * from './Tokens.types';
export * from './Notifications.types';
export * from './NotificationChannelManager.types';
export * from './NotificationChannelGroupManager.types';

@@ -25,6 +25,7 @@ export { default as getDevicePushTokenAsync } from './getDevicePushTokenAsync';

export * from './NotificationPermissions';
export * from './NotificationChannelGroupManager.types';
export * from './NotificationChannelManager.types';
export * from './NotificationPermissions.types';
export * from './Notifications.types';
export * from './Tokens.types';
export * from './Notifications.types';
export * from './NotificationChannelManager.types';
export * from './NotificationChannelGroupManager.types';
//# sourceMappingURL=index.js.map

@@ -190,2 +190,3 @@ import { CalendarTriggerInput as NativeCalendarTriggerInput } from './NotificationScheduler.types';

autoDismiss?: boolean;
sticky?: boolean;
attachments?: {

@@ -192,0 +193,0 @@ url: string;

@@ -11,2 +11,16 @@ # Changelog

## 0.5.0 — 2020-07-27
### 🎉 New features
- Added support for custom large icon on the Android. ([#9116](https://github.com/expo/expo/pull/9116) by [@lukmccall](https://github.com/lukmccall))
- Added `sticky` property, which defines if notification can be dismissed by swipe. ([#9351](https://github.com/expo/expo/pull/9351) by [@barthap](https://github.com/barthap))
### 🐛 Bug fixes
- Include `content-type: application/json` when requesting an Expo push token ([#9332](https://github.com/expo/expo/pull/9332) by @ide)
- Export `NotificationPermissions.types` to make `Notifications.IosAuthorizationStatus` available. ([#8747](https://github.com/expo/expo/pull/8747) by [@brentvatne](https://github.com/brentvatne))
- Fixed remote notifications ignoring the `channelId` parameter. ([#9080](https://github.com/expo/expo/pull/9080) by [@lukmccall](https://github.com/lukmccall))
- Fixed malformed data object on iOS. ([#9164](https://github.com/expo/expo/pull/9164) by [@lukmccall](https://github.com/lukmccall))
## 0.4.0 — 2020-06-24

@@ -13,0 +27,0 @@

{
"name": "expo-notifications",
"version": "0.4.0",
"version": "0.5.0",
"description": "Notifications module",

@@ -52,3 +52,3 @@ "main": "build/index.js",

},
"gitHead": "6597b78a4ac955e721b08bd3ac75aebb0f2c7d9e"
"gitHead": "1bf7e487c9ef2569c105578edcf935a3e1caad6b"
}

@@ -50,5 +50,9 @@ # expo-notifications

- **To customize the icon**:
You can customize two icons: the default and the large one. See [the Android documentation](https://developer.android.com/guide/topics/ui/notifiers/notifications#Templates) for more details. The steps for them are very similar. The only difference is the tag in the second step.
1. You will need to ensure that the icon is properly set up and added the project. To read more on how to create a notification icon and add it to the project check out the [“Create notification icon” section](https://developer.android.com/studio/write/image-asset-studio#create-notification) at the official Android guide. Remember the name you use for the icon asset, you will need it later!
2. Then head over to `android/app/src/main/AndroidManifest.xml` and add a `<meta-data>` tag of `android:name="expo.modules.notifications.default_notification_icon"` inside the `<application>` node referencing the custom icon with `@drawable/<notification_icon_name_you_used_in_step_1>`, like [here](https://github.com/expo/expo/blob/335e67a1a3a91598c02061f3318a881541d0d57a/apps/bare-expo/android/app/src/main/AndroidManifest.xml#L44-L46).
2. Then head over to `android/app/src/main/AndroidManifest.xml` and add a `<meta-data>` tag of `android:name="expo.modules.notifications.default_notification_icon"` (or `android:name="expo.modules.notifications.large_notification_icon"` if you are changing the large icon) inside the `<application>` node referencing the custom icon with `@drawable/<notification_icon_name_you_used_in_step_1>`, like [here](https://github.com/expo/expo/blob/335e67a1a3a91598c02061f3318a881541d0d57a/apps/bare-expo/android/app/src/main/AndroidManifest.xml#L44-L46).
3. In the end your `AndroidManifest.xml` should look more or less like this:
```xml

@@ -112,3 +116,3 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" ...>

- for Firebase Cloud Messaging, check out this guide: _[Uploading Server Credentials](https://docs.expo.io/guides/using-fcm/#uploading-server-credentials)_,
- for Firebase Cloud Messaging, check out this guide: _[Uploading Server Credentials](https://docs.expo.io/push-notifications/using-fcm/#uploading-server-credentials)_,
- for APNS:

@@ -115,0 +119,0 @@ - run `expo credentials:manager` in the root of your application,

@@ -64,2 +64,5 @@ import { Platform, CodedError, UnavailabilityError } from '@unimodules/core';

method: 'POST',
headers: {
'content-type': 'application/json',
},
body: JSON.stringify(body),

@@ -66,0 +69,0 @@ }).catch(error => {

@@ -25,5 +25,6 @@ export { default as getDevicePushTokenAsync } from './getDevicePushTokenAsync';

export * from './NotificationPermissions';
export * from './NotificationChannelGroupManager.types';
export * from './NotificationChannelManager.types';
export * from './NotificationPermissions.types';
export * from './Notifications.types';
export * from './Tokens.types';
export * from './Notifications.types';
export * from './NotificationChannelManager.types';
export * from './NotificationChannelGroupManager.types';

@@ -215,2 +215,3 @@ import { CalendarTriggerInput as NativeCalendarTriggerInput } from './NotificationScheduler.types';

autoDismiss?: boolean;
sticky?: boolean;
attachments?: {

@@ -217,0 +218,0 @@ url: string;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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