Skip to content

[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

@AlissonMMenezes

Description

@AlissonMMenezes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions