We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d55dd3f commit 8bcfddeCopy full SHA for 8bcfdde
index.js
@@ -236,12 +236,22 @@ export default class OneSignal {
236
static sendTag(key, value) {
237
if (!checkIfInitialized()) return;
238
239
+ if (typeof value !== "string") {
240
+ value = JSON.stringify(value);
241
+ }
242
+
243
RNOneSignal.sendTag(key, value);
244
}
245
246
static sendTags(tags) {
247
248
249
+ Object.keys(tags).forEach((key)=>{
250
+ if (typeof tags[key] !== "string"){
251
+ tags[key] = JSON.stringify(tags[key]);
252
253
+ })
254
255
RNOneSignal.sendTags(tags || {});
256
257
0 commit comments