Monday, July 27, 2015

PhoneGap-Plugin-Push Version 1.1.1 Released!

Back during PhoneGap Day EU 2015 I announced our new PushPlugin with it's normalized API and a promise of continued support. With the release of the 1.1.1 version of the plugin we continue to fulfill that promise with some new features and bug fixes.

The most exciting new feature in this release is official support for the Windows platform! This is thanks to the wonderful team at Microsoft who contributed to the plugin to make it happen. Special thanks to Raghav Katyal and Nikhi Khandelwal!

On the Android side of things you now have way more options on how to set what icon is displayed with your push notifications:

Check out the plugin's README for more details on how to setup the each of the image types.

Full Changelog
Implemented enhancements:
  • iOS doesn't add foreground key #41
  • Android: Notification icon problem #20
  • iOS badge number #18
  • How i can set icons for push notifications in status bar and push view in android #14
  • Support Win8.1 + Phone 8.1 Universal Apps (WNS), drop support for WP8.0 (MPNS) #13
Fixed bugs:
  • iOS only reads out "aps" payload #29
  • Event not fired when in background #24
  • Custom notification sound in background mode? #17
Closed issues:
  • iOS only receives first notification in foreground #42
  • Cannot register on iOS #30
  • Fix Android paths in src folder #23
  • PushNotification not defined #21
  • Error trying to remove the plugin #19
  • Handling multiple notifications on Android devices #12
  • PGB ( problem #11
  • reporting location via gcm #6
Merged pull requests:


jezmck said...

Can that be used with PhoneGap Build?

Simon MacDonald said...

@jezmck Yeah, it's documented in the plugins readme. All you need to do is setup the proper tag in your config.xml.

<gap:plugin name="phonegap-plugin-push" source="npm" />

jerryone3 said...

Hello Simon !

I would like to know your opinion, is this new plugin better than the Push plugin ? If so, why ?

Thanks :)

Simon MacDonald said...

@jerryone3 well this plugin is based off of the push plugin you referenced but it's two main advantages are 1) consistent API and 2) actively maintained.

jerryone3 said...

Okay, thanks ! I might follow it for some time and give it a try in a few weeks :)

Martin Bay Pedersen said...

I'm probably asking a stupid question here, but I can't find any information about it in docs, discussions or google.

Can this plugin only be used with Phonegap as opposed to Cordova? Is there any way to make it work in Cordova projects?

Simon MacDonald said...

@Martin there are no stupid questions there are only my sarcastic answers.

Yes, this plugin works with Cordova as well as PhoneGap. PhoneGap is just the Adobe distribution of Cordova and are fully compatible with each other.