We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This issue was originally created by @stage88 as facebook/react-native#14699.
Setting the alertTitle property on PushNotificationIOS.scheduleLocalNotification does not display the title in the notification.
With alertTitle set:
Without:
Use the below code to reproduce.
PushNotificationIOS.scheduleLocalNotification({ fireDate: new Date(Date.now() + (30 * 1000)).toISOString(), alertTitle: 'Incoming Message', alertBody: 'This is my message, please read it for good fortune.', soundName: 'default', applicationIconBadgeNumber: 1, userInfo: { id: 11 } })
Adding the following line in RCTPushNotificationManager.m (54) fixes the issue:
notification.alertTitle = [RCTConvert NSString:details[@"alertTitle"]];
The text was updated successfully, but these errors were encountered:
alertTitle support has been added in 1.2.2 (#133) 🎉
1.2.2
Thanks to @lukebars !
Sorry, something went wrong.
No branches or pull requests
This issue was originally created by @stage88 as facebook/react-native#14699.
Description
Setting the alertTitle property on PushNotificationIOS.scheduleLocalNotification does not display the title in the notification.
With alertTitle set:
Without:
Reproduction Steps
Use the below code to reproduce.
Sample Code
PushNotificationIOS.scheduleLocalNotification({ fireDate: new Date(Date.now() + (30 * 1000)).toISOString(), alertTitle: 'Incoming Message', alertBody: 'This is my message, please read it for good fortune.', soundName: 'default', applicationIconBadgeNumber: 1, userInfo: { id: 11 } })
Solution
Adding the following line in RCTPushNotificationManager.m (54) fixes the issue:
notification.alertTitle = [RCTConvert NSString:details[@"alertTitle"]];
Additional Information
The text was updated successfully, but these errors were encountered: