Skip to content

Commit

Permalink
add content availble for non-silent push notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
radealite committed Oct 28, 2016
1 parent b809f34 commit 9854513
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports.sendPush = function sendPush(config) {
"content-available": config.contentAvailable,
"badge": config.badge
} : {
"content-available": config.contentAvailable,
"alert": config.text,
"title": config.title,
"badge": config.badge,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "appboy-sdk",
"version": "0.1.2",
"version": "0.1.3",
"description": "appboy sdk",
"main": "app.js",
"author": "Doxout",
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var t = require('blue-tape');
var appboySdk = require('./app.js');

var groupId = "<your-groupId>";
var recipients = ["416a4195-b842-4f83-9cfb-a6798767b26a", "2e8de969-3ab0-4344-b55f-bb7ffb912422", "2b711785-5f5a-4640-bf65-4771cc35cff1"];
var recipients = ["311e1e74-fce0-4d7f-b264-e2c2cd3210b1"];
var text = "This is a test notification";
var title = "This is the title";
var badge = 1;
Expand Down

0 comments on commit 9854513

Please sign in to comment.