williamrijksen / com.williamrijksen.onesignal

Titanium Appcelerator Library for OneSignal Push Notifications Service
Other
51 stars 43 forks source link

getTags returns wrong tags of current player #93

Closed frodfigu closed 4 years ago

frodfigu commented 4 years ago

When I´m call onesignal.getTags... the returned data is wrong... Not the correct tags for current user.

In Onesignal console can I view the correct tags and doesn´t match with the returned from this module.

Any solution?

chmiiller commented 4 years ago

Is this on iOS or Android? I've just tested it on iOS and it is working fine. Don't forget that getTags receives a callback function with a result as a parameter where the user tags are, for example:

onesignal.getTags(function(res){
        console.log(res);
        // You will get something like this:
        // {
        //     "success": true,
        //     "results": {
        //         "my_tag": "my_value"
        //     }
        // }
    });
chmiiller commented 4 years ago

Ok just tested it out on Android with the same snippet from above and the result is the same. Closing this issue.