File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class OneSignalUser {
5252 /// specific users and/or personalizing messages. If the tag [key] already
5353 /// exists, it will be replaced with the [value] provided here.
5454 Future <void > addTagWithKey (String key, dynamic value) async {
55- return await this .addTags ({key: value});
55+ return await this .addTags ({key: value. toString () });
5656 }
5757
5858 /// Add multiple [tags] for the current user.
@@ -61,6 +61,9 @@ class OneSignalUser {
6161 /// specific users and/or personalizing messages. If the tag key already
6262 /// exists, it will be replaced with the value provided here.
6363 Future <void > addTags (Map <String , dynamic > tags) async {
64+ tags.forEach ((key, value) {
65+ tags[key] = value.toString ();
66+ });
6467 return await _channel.invokeMethod ("OneSignal#addTags" , tags);
6568 }
6669
You can’t perform that action at this time.
0 commit comments