File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ export const App = () => {
77
77
alert : 'Sample notification' ,
78
78
badge : '+1' ,
79
79
sound : 'default' ,
80
+ alertTitle : 'title' ,
80
81
category : 'REACT_NATIVE' ,
81
82
'content-available' : 1 ,
82
83
} ,
@@ -121,7 +122,9 @@ export const App = () => {
121
122
} ;
122
123
123
124
const onRemoteNotification = ( notification ) => {
124
- const result = `Message: ${ notification . getMessage ( ) } ;\n
125
+ const result = `
126
+ Title: ${ notification . getTitle ( ) } ;\n
127
+ Message: ${ notification . getMessage ( ) } ;\n
125
128
badge: ${ notification . getBadgeCount ( ) } ;\n
126
129
sound: ${ notification . getSound ( ) } ;\n
127
130
category: ${ notification . getCategory ( ) } ;\n
@@ -138,7 +141,8 @@ export const App = () => {
138
141
const onLocalNotification = ( notification ) = > {
139
142
Alert . alert (
140
143
'Local Notification Received' ,
141
- 'Alert message: ' + notification . getMessage ( ) ,
144
+ `Alert title: ${ notification . getTitle ( ) } ,
145
+ 'Alert message: ${ notification . getMessage ( ) } ` ,
142
146
[
143
147
{
144
148
text : 'Dismiss' ,
Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ PODS:
292
292
- React-cxxreact (= 0.62.2)
293
293
- React-jsi (= 0.62.2)
294
294
- ReactCommon/callinvoker (= 0.62.2)
295
- - RNCPushNotificationIOS (1.2.2 ):
295
+ - RNCPushNotificationIOS (1.3.0 ):
296
296
- React
297
297
- Yoga (1.14.0)
298
298
- YogaKit (1.18.1):
@@ -453,10 +453,10 @@ SPEC CHECKSUMS:
453
453
React-RCTText: fae545b10cfdb3d247c36c56f61a94cfd6dba41d
454
454
React-RCTVibration: 4356114dbcba4ce66991096e51a66e61eda51256
455
455
ReactCommon: ed4e11d27609d571e7eee8b65548efc191116eb3
456
- RNCPushNotificationIOS: 4c97a36dbec42dba411cc35e6dac25e34a805fde
456
+ RNCPushNotificationIOS: d5fd66aed4e03c6491ca0c6111a03d4f6455ff6c
457
457
Yoga: 3ebccbdd559724312790e7742142d062476b698e
458
458
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
459
459
460
460
PODFILE CHECKSUM: fe0bcbd52826c4d7c0dd4aa1c136e663b1ff0615
461
461
462
- COCOAPODS: 1.8.4
462
+ COCOAPODS: 1.9.1
You can’t perform that action at this time.
0 commit comments