JAVA
ParsePush push = new ParsePush();push.setChannel("AllUsers");
push.setMessage("The app will be down for maintenance at midnight EST for two hours.");
push.sendInBackground();
Multiple Channels
LinkedList<String> channels = new LinkedList<String>();channels.add("PaidSubscribers");
channels.add("FreeSubscribers");
ParsePush push = new ParsePush();
// Be sure to use the plural 'setChannels'.
push.setChannels(channels);
push.setMessage("There is a sale today in the store!");
push.sendInBackground();
SWIFT
let push = PFPush()push.setChannel("AllUsers")
push.setMessage("The app will be down for maintenance at midnight EST for two hours.")
push.sendPushInBackground()
Multiple Channels
let channels = [ "PaidSubscribers", "FreeSubscribers" ];
let push = PFPush()
// Be sure to use the plural 'setChannels'.
push.setChannels(channels)
push.setMessage("There is a sale today in the store!")
push.sendPushInBackground()
No comments:
Post a Comment