From ced14a385a8606319e5d7d604f65c7a33c8e1476 Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Sun, 18 Oct 2015 20:27:36 -0400 Subject: switched to new push plugin that works with JSON payloads --- plugins/phonegap-plugin-push/example/server/pushAPNS.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 plugins/phonegap-plugin-push/example/server/pushAPNS.rb (limited to 'plugins/phonegap-plugin-push/example/server/pushAPNS.rb') diff --git a/plugins/phonegap-plugin-push/example/server/pushAPNS.rb b/plugins/phonegap-plugin-push/example/server/pushAPNS.rb new file mode 100644 index 00000000..45a69a7d --- /dev/null +++ b/plugins/phonegap-plugin-push/example/server/pushAPNS.rb @@ -0,0 +1,12 @@ +require 'rubygems' +require 'pushmeup' + + +APNS.host = 'gateway.sandbox.push.apple.com' +APNS.port = 2195 +APNS.pem = '' +APNS.pass = '' + +device_token = '' +# APNS.send_notification(device_token, 'Hello iPhone!' ) +APNS.send_notification(device_token, :alert => 'PushPlugin works!!', :badge => 1, :sound => 'beep.wav') -- cgit v1.2.3