Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send tags? #9

Closed
shimatai opened this issue Sep 15, 2019 · 3 comments
Closed

How to send tags? #9

shimatai opened this issue Sep 15, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@shimatai
Copy link

Hi,

I need to send tags using this module. I've found the method this.onesignal.send(method: OneSignalStubFuncionList, value: undefined) but I don't know how to send a tag using this method.

Can you post an example using the .push(...) method?

@vmdao
Copy link

vmdao commented Sep 16, 2019

I think contribute more it

@MSakamaki
Copy link
Owner

MSakamaki commented Sep 17, 2019

@shimatai
Thank you for reporting!
push Added push function with second parameter.
Check for the latest version 8.0.1.

It should be possible to do it as follows  (sorry, a breaking change).

ngxOneSignal.push(['sendTag', 'key', 'value', function(tagsSent) {
  // Callback called when tags have finished sending
}]);

@vmdao
issues and PR are welcome if there are more features you need.

@MSakamaki MSakamaki added the bug Something isn't working label Sep 18, 2019
@hiramreyes06
Copy link

hiramreyes06 commented Jun 8, 2020

Can you give us a example using the push method of OneSignalService, it has a that method. I have been trying to use it but always I get a error that says: can't find then of promise ... I tried with callbacaks too but the arguments are saved in ngxOneSignal object in window object for that I can't get user data and one signal functions... Or how we can to use de original OneSignal object in window? ... Please help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants