View Source ArkeServer.Utils.OneSignal (arke_server v0.3.18)

Summary

Functions

Link to this function

create_notification(member, contents, custom_data \\ %{})

View Source

Creates a OneSignal push notification

Parameter

  • member => single member or list of members
  • contents => %{key: value} => see OneSignal api docs for contents push notification map key. This has been kept for retrocompatibility, passing contents as a custom_data map key should now be preferred
  • custom_data => %{key: value} => see OneSignal api docs for push notifications. These are options for the soon-to-be-created notification