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

[question]: I am trying to send a notification using templates, or customize it via code, but it doesn't to seems to be working #30

Open
1 task done
AlissonMMenezes opened this issue Jul 4, 2023 · 0 comments

Comments

@AlissonMMenezes
Copy link

How can we help?

the closest I found was this:

notification := *onesignal.NewNotification(os.Getenv("ONESIGNAL_APP_ID"))
notification.IncludeExternalUserIds = []string{"1"}
d := map[string]interface{}{"title": "user_name", "content": "hi pipo", "picture": "picture_url"}
notification.SetData(d)
notification.SetTemplateId("template_id")

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant