Releases: matthijs2704/vapor-apns
VaporAPNS 2.1.0
π Changes
- Fix for TooManyProviderTokenUpdates (thanks @mipstian, much appreciate it!)
π Installing
Installing is super easy as always! Just add the following line to your Package.swift and you're done!
.Package(url:"https://github.com/matthijs2704/vapor-apns.git", majorVersion: 2, minor: 1)
VaporAPNS 2.0.0
π Changes
- Support for Vapor 2 (thanks @jimmya, much appreciate it! :))
π Installing
Installing is super easy as always! Just add the following line to your Package.swift and you're done!
.Package(url:"https://github.com/matthijs2704/vapor-apns.git", majorVersion: 2, minor: 0)
VaporAPNS 1.2.2
π Changes
- Added full support for Swift 3.1, on both Linux and macOS
The updater needs to be tested on more systems before release. It's confirmed working on macOS and both Ubuntu 16.04 server installations and in Ubuntu docker installations (the official Vapor docker image 'vapor/vapor'). Also the updater needs documentation of the new options (disable, auto update ect.)
π Installing
π New install
Installing is super easy as always! Just add the following line to your Package.swift and you're done!
.Package(url:"https://github.com/matthijs2704/vapor-apns.git", majorVersion: 1, minor: 2)
VaporAPNS 1.2.1 beta 1
π Changes
- Added support for Swift 3.1
The updater needs to be tested on more systems before release. It's confirmed working on macOS and both Ubuntu 16.04 server installations and in Ubuntu docker installations (the official Vapor docker image 'vapor/vapor'). Also the updater needs documentation of the new options (disable, auto update ect.)
π Installing
π New install
Installing is super easy as always! Just add the following line to your Package.swift and you're done!
.Package(url:"https://github.com/matthijs2704/vapor-apns.git", majorVersion: 1, minor: 2)
VaporAPNS 1.2.0 beta 1
π Changes
- Added installer/updater for curl
- Added support for relative keypaths
The updater needs to be tested on more systems before release. It's confirmed working on macOS and both Ubuntu 16.04 server installations and in Ubuntu docker installations (the official Vapor docker image 'vapor/vapor'). Also the updater needs documentation of the new options (disable, auto update ect.)
π Installing
π New install
Installing is super easy as always! Just add the following line to your Package.swift and you're done!
.Package(url:"https://github.com/matthijs2704/vapor-apns.git", majorVersion: 1, minor: 2)
VaporAPNS 1.1.2
π Changes
- Updated VaporJWT
π Installing
π New install
Installing is super easy as always! Just add the following line to your Package.swift and you're done!
.Package(url:"https://github.com/matthijs2704/vapor-apns.git", majorVersion: 1, minor: 1)
VaporAPNS 1.1.1
π Changes
- Updated VaporJWT
π Installing
π New install
Installing is super easy as always! Just add the following line to your Package.swift and you're done!
.Package(url:"https://github.com/matthijs2704/vapor-apns.git", majorVersion: 1, minor: 1)
VaporAPNS 1.1.0
π Changes
- Adds the possibility to mass send push notifications to an array of device tokens
- Fixes network error responses
- Adds deviceToken to the Result response
π Installing
π New install
Installing is super easy as always! Just add the following line to your Package.swift and you're done!
.Package(url:"https://github.com/matthijs2704/vapor-apns.git", majorVersion: 1, minor: 1)
β‘ Are you updating from VaporAPNS 1.0.x?
Great! Just change the minor: 0
to minor: 1
and you're ready to rock! πΈ
Change: .Package(url:"https://github.com/matthijs2704/vapor-apns.git", majorVersion: 1, minor: 0)
to: .Package(url:"https://github.com/matthijs2704/vapor-apns.git", majorVersion: 1, minor: 1)
β Compatibility notice
This version contains a few source-breaking changes, so you can't just update, you'll have to make some code changes. I've tried to keep compatibility with the 1.0.x version, but some changes caused that to not work out. Luckily it is pretty easy to migrate to the new version! π
π Migrating to 1.1.0
First thing to do is to remove the 'deviceToken' from the initialiser of your ApplePushMessage. Second thing is to change the send
method where you send the push message. Change it from:
let result = vaporAPNS.send(pushMessage)
to:
let result = vaporAPNS.send(pushMessage, to: "<your deviceToken>")
If you were using VaporAPNS to batch send notifications, you can remove some more code! This version of VaporAPNS adds support for sending multiple messages at once, using this snippet:
vaporAPNS.send(pushMessage, to: ["488681b8e30e6722012aeb88f485c823b9be15c42e6cc8db1550a8f1abb590d7", "2d11c1a026a168cee25690f2770993f6068206b1d11d54f88910b8166b23f983"]) { result in
print(result)
if case let .success(messageId,deviceToken,serviceStatus) = result, case .success = serviceStatus {
print ("Success!")
}
}
VaporAPNS 1.0.3
Updated to most recent VaporJWT library and adds category option
VaporAPNS 1.0.2
A fresh new release with working tests ;) And some overall improvements. Also Linux builds now!