Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var message = new gcm.Message({
- collapseKey: 'data',
- priority: 'high',
- contentAvailable: true,
- delayWhileIdle: false,
- timeToLive: 10000,
- data: {
- message: 'Message from gcm server',
- action: 'Update data on server'
- },
- notification: {
- tag : 'hasData',
- title: "My notification title",
- icon: "ic_launcher",
- color: "#22C064",
- sound: "jingle_bells_sms",
- soundname: "jingle_bells_sms",
- body: "This is a GCM notification that will be displayed ASAP.",
- click_action: "OPEN_APP"
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement