Skip to content
/ wns Public
forked from tjanczuk/wns

Send push notifications to Windows 8 devices using WNS

License

Notifications You must be signed in to change notification settings

beatgrabe/wns

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WNS

This fork enables custom path to audio file with:

var wns = require('wns');

var channelUrl = '{url to your application notification channel}';
var options = {
	client_id: '{your Package Security Identifier}',
	client_secret: '{your Client Secret}'
	audio: '{ src : "ms-appx:///" + "path_to_audio_file" }'
};

wns.sendToastText02(channelUrl, 'Yes!', 'It worked!', clientOptions, function(error, result) {
	if (error)
		console.error(error);
	else
		console.log(result);
});

About

Send push notifications to Windows 8 devices using WNS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%