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 {
52
52
/// specific users and/or personalizing messages. If the tag [key] already
53
53
/// exists, it will be replaced with the [value] provided here.
54
54
Future <void > addTagWithKey (String key, dynamic value) async {
55
- return await this .addTags ({key: value});
55
+ return await this .addTags ({key: value. toString () });
56
56
}
57
57
58
58
/// Add multiple [tags] for the current user.
@@ -61,6 +61,9 @@ class OneSignalUser {
61
61
/// specific users and/or personalizing messages. If the tag key already
62
62
/// exists, it will be replaced with the value provided here.
63
63
Future <void > addTags (Map <String , dynamic > tags) async {
64
+ tags.forEach ((key, value) {
65
+ tags[key] = value.toString ();
66
+ });
64
67
return await _channel.invokeMethod ("OneSignal#addTags" , tags);
65
68
}
66
69
You can’t perform that action at this time.
0 commit comments