Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Releases: matthijs2704/vapor-apns

VaporAPNS 2.1.0

19 Oct 08:59
Compare
Choose a tag to compare

πŸ“” 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

02 Jun 08:47
Compare
Choose a tag to compare

πŸ“” 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

13 Apr 17:32
Compare
Choose a tag to compare

πŸ“” 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

06 Apr 15:43
Compare
Choose a tag to compare
Pre-release

πŸ“” 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

04 Jan 13:53
Compare
Choose a tag to compare
Pre-release

πŸ“” 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

21 Dec 19:53
Compare
Choose a tag to compare

πŸ“” 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

05 Nov 22:16
Compare
Choose a tag to compare

πŸ“” 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

31 Oct 14:08
Compare
Choose a tag to compare

πŸ“” 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

24 Oct 14:49
Compare
Choose a tag to compare

Updated to most recent VaporJWT library and adds category option

VaporAPNS 1.0.2

08 Oct 21:19
Compare
Choose a tag to compare

A fresh new release with working tests ;) And some overall improvements. Also Linux builds now!