You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Sending foreground pushes via different identifiersvartoken="71962e3cbc7dfa91e8bec21b532b69c211a55453a1407299bb78f931c7e8f7ec"vardeviceId="BC903204-51C1-4DF6-92E8-F5A5DE00E26E"varalias="Jeff's iPhone 5"vararrayOfTags==newArray()arrayOfTags.push("device-tag")// Sending foreground push via tokenpush.sendToToken(token,"Sending message using token")// Sending foreground push via device idpush.sendToDeviceId(deviceId,"Sending message using device id")// Sending foreground push via aliaspush.sendToAlias(alias,"Sending message using alias")// Sending foreground push via tagspush.sendToTags(arrayOfTags,"Sending message using tags")
Sending Background Push
// Sending background pushes via different identifiersvartoken="71962e3cbc7dfa91e8bec21b532b69c211a55453a1407299bb78f931c7e8f7ec"vardeviceId="BC903204-51C1-4DF6-92E8-F5A5DE00E26E"varalias="Jeff's iPhone 5"vararrayOfTags==newArray()arrayOfTags.push("device-tag")vardata={"payload": {"age": "25","height": "6.25"}}varsound=""// Sending background push via tokenpush.sendBackgroundToToken(token,JSON.stringify(data),sound)// Sending background push via device idpush.sendBackgroundToDeviceId(deviceId,JSON.stringify(data),sound)// Sending background push via aliaspush.sendBackgroundToAlias(alias,JSON.stringify(data),sound)// Sending background push via tagspush.sendBackgroundToTags(arrayOfTags,JSON.stringify(data),sound)