ec74a9696a
Summary: Currently, since the alertTitle is not set in UILocalNotification, the notification displays just the notification body with no title. This commit sets the alertTitle for local notifications. Issue: #14699 - In a sample RN app, created a component and added the following code to componentDidMount(): `PushNotificationIOS.scheduleLocalNotification({ fireDate: new Date(Date.now() + (30 * 1000)).toISOString(), alertTitle: 'Incoming Message', alertBody: 'Test message', soundName: 'default' })` - On running the app, the notification appears with both body and title once the component is mounted. ![settitle_fix](https://user-images.githubusercontent.com/4279549/28995873-f62c9866-7a11-11e7-9f29-95dba50ef40b.jpg) Closes https://github.com/facebook/react-native/pull/15381 Differential Revision: D5572606 Pulled By: shergin fbshipit-source-id: ce5d98ed595eedf51ac3da7dfd94de52cf80be3d |
||
---|---|---|
.. | ||
RCTPushNotification.xcodeproj | ||
PushNotificationIOS.js | ||
RCTPushNotificationManager.h | ||
RCTPushNotificationManager.m |