react-native/Libraries/PushNotificationIOS
Tina J ec74a9696a Set alertTitle in UILocalNotification
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
2017-08-06 20:22:21 -07:00
..
RCTPushNotification.xcodeproj Standardize project indentation settings on 2 spaces 2017-07-31 05:20:03 -07:00
PushNotificationIOS.js Set alertTitle in UILocalNotification 2017-08-06 20:22:21 -07:00
RCTPushNotificationManager.h Handle push notifications on iOS 2017-02-03 11:58:30 -08:00
RCTPushNotificationManager.m Set alertTitle in UILocalNotification 2017-08-06 20:22:21 -07:00