roblav96 / nativescript-onesignal

A Nativescript plugin that wraps the iOS and Android OneSignal Push Notifications SDK.
https://documentation.onesignal.com/docs/getting-started
Other
24 stars 42 forks source link

Ios Android inconsistency #15

Open vincentduprez opened 7 years ago

vincentduprez commented 7 years ago

Hi Just to let you know that there is a platform inconsistency : sendTag method on Android is not a method on Ios ... Official Api uses sendTag

if(isIOS)
                {
                    TnsOneSignal.sendTagValue("userid",this.userModel.id+"");
                    TnsOneSignal.sendTagValue("driver",this.userModel.driver+"");
                }
            else if(isAndroid)
                {
                    TnsOneSignal.sendTag("userid",this.userModel.id+"");
                    TnsOneSignal.sendTag("driver",this.userModel.driver+"");
                }