togethernotification - TogetherGames/Public-Corona-Lua GitHub Wiki

TogetherNotification

Together::TogetherNotification

Overview

Object containing push notification specific data utilized by the Together:SendPushNotification method


Members

string alert

The alert message displayed to the receiving user

number badge

The badge number displayed by the push notification(APNS Only)

string sound

The name of a sound to be played along with the push notification

table custom

A table of extra data passed along with the push notification to be handled by the receiver's client


Methods


New()

Creates a new instance of a TogetherNotification class.

Syntax
TogetherNotification:New( alert, badge, sound, custom )
Parameters

string alert

number badge

string sound

table custom

⚠️ **GitHub.com Fallback** ⚠️