File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
FirebaseAdmin.Tests/Messaging Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1013,6 +1013,7 @@ public void ApnsConfig()
1013
1013
AnalyticsLabel = "label" ,
1014
1014
ImageUrl = "https://example.com/image.png" ,
1015
1015
} ,
1016
+ LiveActivityToken = "token" ,
1016
1017
} ,
1017
1018
} ;
1018
1019
var expected = new JObject ( )
@@ -1056,6 +1057,9 @@ public void ApnsConfig()
1056
1057
{ "image" , "https://example.com/image.png" } ,
1057
1058
}
1058
1059
} ,
1060
+ {
1061
+ "live_activity_token" , "token"
1062
+ } ,
1059
1063
}
1060
1064
} ,
1061
1065
} ;
Original file line number Diff line number Diff line change @@ -75,6 +75,14 @@ public IDictionary<string, object> CustomData
75
75
}
76
76
}
77
77
78
+ /// <summary>
79
+ /// Gets or sets the APNs token used for live activities on iOS. Refer
80
+ /// to <a href="https://firebase.google.com/docs/cloud-messaging/ios/live-activity">
81
+ /// Firebase live activity documentation</a> for more information.
82
+ /// </summary>
83
+ [ JsonProperty ( "live_activity_token" ) ]
84
+ public string LiveActivityToken { get ; set ; }
85
+
78
86
/// <summary>
79
87
/// Gets or sets the APNs payload as accepted by the FCM backend servers.
80
88
/// </summary>
@@ -108,6 +116,7 @@ internal ApnsConfig CopyAndValidate()
108
116
Headers = this . Headers ? . Copy ( ) ,
109
117
Payload = this . Payload . CopyAndValidate ( ) ,
110
118
FcmOptions = this . FcmOptions ? . CopyAndValidate ( ) ,
119
+ LiveActivityToken = this . LiveActivityToken ,
111
120
} ;
112
121
return copy ;
113
122
}
You can’t perform that action at this time.
0 commit comments