From 1f462d8c669c7eaaa9f0f803b651b768d3855f03 Mon Sep 17 00:00:00 2001 From: Boris Tacyniak Date: Thu, 11 Feb 2021 16:40:28 +0100 Subject: [PATCH] Upgrade to version 7.2.1. Fix #1858 --- CHANGELOG.md | 6 ++++++ README.md | 2 +- index.js | 2 ++ package.json | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5563cf0ab..002c29e68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,12 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html ### Fixed +## [7.2.1] 2021-02-11 + +### Fixed + +- (iOS) Fix `playSound` options on local notifications. [1858](https://github.com/zo0r/react-native-push-notification/issues/1858#issuecomment-775714298) + ## [7.2.0] 2021-01-24 ### Features diff --git a/README.md b/README.md index 5199f98b5..73622fc5f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - # React Native Push Notifications +# React Native Push Notifications [![npm version](https://badge.fury.io/js/react-native-push-notification.svg?update=9)](http://badge.fury.io/js/react-native-push-notification) [![npm downloads](https://img.shields.io/npm/dm/react-native-push-notification.svg?update=9)](http://badge.fury.io/js/react-native-push-notification) diff --git a/index.js b/index.js index f06e4d913..d691fd94a 100644 --- a/index.js +++ b/index.js @@ -183,6 +183,7 @@ Notifications.localNotification = function(details) { body: details.message, badge: details.number, sound: soundName, + isSilent: details.playSound === false, category: details.category, userInfo: details.userInfo }); @@ -258,6 +259,7 @@ Notifications.localNotificationSchedule = function(details) { title: details.title, body: details.message, sound: soundName, + isSilent: details.playSound === false, category: details.category, userInfo: details.userInfo, repeats: (details.repeatType && details.repeatType == "day"), diff --git a/package.json b/package.json index 30a9c49da..cf67d53ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-push-notification", - "version": "7.2.0", + "version": "7.2.1", "description": "React Native Local and Remote Notifications", "main": "index.js", "scripts": {