My name is Gabriel Hernan Vion, I am a young game developer from Argentina. I work in a small digital agency called Quadramma as Interactive Designer.

I was using Unity3d to make an application for a client which needed to have Push Notifications in order to send useful information to their users. As it was my first time working with iOS systems I didn't know where to start. So I googled the problem and tried several different approaches to it, but non of them seemed to work correctly. After dealing with intricate solutions and wasting a lot of time failing I came a across Pushwoosh... And it was Amazing! I couldn't believe how easy it seemed to be!

No tricky coding, no weird systems or plug-ins, no tedious configurations or hours of testing! It was wonderful! Just follow four simple steps and you are good to go! Easy as that!

And if you happen to have any kind of problem, their caring customer support service will provide the assistance that you need.

I am definitely recommending Pushwoosh to my co-workers. And I am planing on using it on my future projects.

Gabriel Hernan Vion

Interactive Designer

Quadramma

READ TESTIMONIAL

PhoneGap/Cordova SDK

Download SDK Download Sample

1. Install the Plugin source code for Phonegap push notifications into your app by running the following command in the command line: phonegap plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin.git


2. Whitelist *.pushwoosh.com domain in the config.xml file:

	<access origin="*.pushwoosh.com" />

3. Register for push notifications: Add the following function to your javascript file, enter the correct Project Number and Pushwoosh App ID

function initPushwoosh()
{
	var pushNotification = window.plugins.pushNotification;

	//set push notifications handler
	document.addEventListener('push-notification', function(event) {
		var title = event.notification.title;
		var userData = event.notification.userdata;
	                            
		if(typeof(userData) != "undefined") {
			console.warn('user data: ' + JSON.stringify(userData));
		}
									
		alert(title);
   	});

	//initialize Pushwoosh with projectid: "GOOGLE_PROJECT_ID", appid : "PUSHWOOSH_APP_ID". This will trigger all pending push notifications on start.
	pushNotification.onDeviceReady({ projectid: "GOOGLE_PROJECT_ID", appid : "PUSHWOOSH_APP_ID" });

	//register for pushes
	pushNotification.registerDevice(
		function(status) {
			var pushToken = status;
			console.warn('push token: ' + pushToken);
		},
		function(status) {
			console.warn(JSON.stringify(['failed to register ', status]));
		}
	);
}

Add method init() to the onload function in HTML:

<body onload="init();" >

In the init function add:

function init() {
    document.addEventListener("deviceready", initPushwoosh, true);

    //rest of the code
}

4. Receiving push notifications. See the following snippet of code in initPushwoosh function

document.addEventListener('push-notification', function(event) {
	var title = event.notification.title;
	var userData = event.notification.userdata;

	console.warn('user data: ' + JSON.stringify(userData));
	alert(title);
});
Due to compatibility with Android 4 please make sure you are using at least 11 version of the Android API.
The SDK will run on older devices.

Push Notifications Plugin API:

See the full plugin API here: https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin/blob/master/www/PushNotification.js