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

@nativescript/local-notifications

Package Overview
Dependencies
Maintainers
19
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativescript/local-notifications - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

2

index.ios.d.ts

@@ -27,3 +27,3 @@ import { LocalNotificationsApi, LocalNotificationsCommon, ReceivedNotification, ScheduleOptions } from './common';

cancel(id: number): Promise<boolean>;
cancelAll(): Promise<any>;
cancelAll(): Promise<void>;
getScheduledIds(): Promise<number[]>;

@@ -30,0 +30,0 @@ schedule(options: ScheduleOptions[]): Promise<Array<number>>;

@@ -127,2 +127,5 @@ import { File, ImageSource, knownFolders, path as fsPath } from '@nativescript/core';

}
else {
content.sound = UNNotificationSound.soundNamed(options.sound);
}
const userInfoDict = new NSMutableDictionary({ capacity: 3 });

@@ -129,0 +132,0 @@ userInfoDict.setObjectForKey('nativescript-local-notifications', '__NotificationType');

{
"name": "@nativescript/local-notifications",
"version": "5.0.2",
"version": "5.0.3",
"description": "The Local Notifications plugin allows your app to show notifications when the app is not running.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -78,3 +78,3 @@ # NativeScript Local Notifications Plugin

| `badge` | On iOS (and some Android devices) you see a number on top of the app icon. On most Android devices you'll see this number in the notification center. Default not set (0). |
| `sound` | Notification sound. For custom notification sound (iOS only), copy the file to `App_Resources/iOS`. Set this to "default" (or do not set at all) in order to use default OS sound. Set this to `null` to suppress sound. |
| `sound` | Notification sound. For custom notification sound, copy the file to `App_Resources/iOS` and `App_Resources/Android/src/main/res/raw`. Set this to "default" (or do not set at all) in order to use default OS sound. Set this to `null` to suppress sound. |
| `interval` | Set to one of `second`, `minute`, `hour`, `day`, `week`, `month`, `year`, number (in days) if you want a recurring notification. |

@@ -120,3 +120,3 @@ | `icon` | On Android you can set a custom icon in the system tray. Pass in `res://filename` (without the extension) which lives in `App_Resouces/Android/drawable` folders. If not passed, we'll look there for a file named `ic_stat_notify.png`. By default the app icon is used. Android < Lollipop (21) only (see `silhouetteIcon` below). |

channel: 'My Channel', // default: 'Channel'
sound: 'customsound-ios.wav', // falls back to the default sound on Android
sound: isAndroid ? 'customsound' : 'customsound.wav',
at: new Date(new Date().getTime() + 10 * 1000), // 10 seconds from now

@@ -123,0 +123,0 @@ },

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