Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 1f462d8

Browse files
committed
Upgrade to version 7.2.1.
Fix #1858
1 parent 3ad9182 commit 1f462d8

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
1212

1313
### Fixed
1414

15+
## [7.2.1] 2021-02-11
16+
17+
### Fixed
18+
19+
- (iOS) Fix `playSound` options on local notifications. [1858](https://github.com/zo0r/react-native-push-notification/issues/1858#issuecomment-775714298)
20+
1521
## [7.2.0] 2021-01-24
1622

1723
### Features

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# React Native Push Notifications
1+
# React Native Push Notifications
22

33
[![npm version](https://badge.fury.io/js/react-native-push-notification.svg?update=9)](http://badge.fury.io/js/react-native-push-notification)
44
[![npm downloads](https://img.shields.io/npm/dm/react-native-push-notification.svg?update=9)](http://badge.fury.io/js/react-native-push-notification)

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ Notifications.localNotification = function(details) {
183183
body: details.message,
184184
badge: details.number,
185185
sound: soundName,
186+
isSilent: details.playSound === false,
186187
category: details.category,
187188
userInfo: details.userInfo
188189
});
@@ -258,6 +259,7 @@ Notifications.localNotificationSchedule = function(details) {
258259
title: details.title,
259260
body: details.message,
260261
sound: soundName,
262+
isSilent: details.playSound === false,
261263
category: details.category,
262264
userInfo: details.userInfo,
263265
repeats: (details.repeatType && details.repeatType == "day"),

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-push-notification",
3-
"version": "7.2.0",
3+
"version": "7.2.1",
44
"description": "React Native Local and Remote Notifications",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)