Skip to content

Commit 040e2f7

Browse files
ghivertNaturalclar
authored andcommitted
Add ability to repeat notifications like on iOS (react-native-push-notification#268)
Co-authored-by: Jesse Katsumata <[email protected]> Co-authored-by: Jesse Katsumata <[email protected]>
1 parent 701eeee commit 040e2f7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,10 @@ export const App = () => {
239239
};
240240
};
241241
```
242+
242243
## How to recieve rich notification in remote
243244

244-
Follow these [article](https://firebase.google.com/docs/cloud-messaging/ios/send-image) to create rich notification for your own
245+
Follow these [article](https://firebase.google.com/docs/cloud-messaging/ios/send-image) to create rich notification for your own
245246

246247
# Reference
247248

@@ -300,7 +301,7 @@ details is an object containing:
300301
- `isSilent` : If true, the notification will appear without sound (optional).
301302
- `category` : The category of this notification, required for actionable notifications (optional).
302303
- `userInfo` : An object containing additional notification data (optional).
303-
- `image` : It's useful if you need to diplay rich notification (optional).
304+
- `image` : It's useful if you need to diplay rich notification (optional).
304305
- `applicationIconBadgeNumber` The number to display as the app's icon badge. Setting the number to 0 removes the icon badge (optional).
305306
- `repeatInterval` : The interval to repeat as a string. Possible values: `minute`, `hour`, `day`, `week`, `month`, `year` (optional).
306307

ios/RCTConvert+Notification.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ + (UNNotificationRequest *)UNNotificationRequest:(id)json
130130
}
131131
} else {
132132
content.sound = [RCTConvert NSString:details[@"sound"]] ? [UNNotificationSound soundNamed:[RCTConvert NSString:details[@"sound"]]] : [UNNotificationSound defaultSound];
133-
}
133+
}```
134134
}
135135

136136
NSDate* fireDate = [RCTConvert NSDate:details[@"fireDate"]];

0 commit comments

Comments
 (0)