Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Porting to Swift 3.0 #40

Open
sergiobuonanno opened this issue Jan 5, 2017 · 2 comments
Open

Porting to Swift 3.0 #40

sergiobuonanno opened this issue Jan 5, 2017 · 2 comments

Comments

@sergiobuonanno
Copy link

Any intention to port it to Swift 3.0 ? There are several issues related to the error management that would be easier to cope with if you poor the library.

I have also another problem. Unexpectedly, sometimes it refuses
to work with the error "Invalid Device Token", but I'm sure it is valid, because it works with other testing tools. Thanks

@leovandriel
Copy link
Contributor

Hi @sergiobuonanno,

There are currently no plans to port to Swift. NWPusher uses the binary push interface, which has been deprecated by Apple. Because of this it seems most appropriate to keep it Objective-C.

Considering your other problem. There are many reasons why pushing can fail. Often this is related to whether or not it's a sandbox device token. In my experience failure is often consistent: a device token either works all the time or fails all the time. For a comprehensive list of trouble, please take a look a the Troubleshooting section: https://github.com/noodlewerk/NWPusher#troubleshooting. If you're stuck, please provide more details on the error code, certificates used and sandbox yes/no.

@amraboelela
Copy link

Check https://github.com/amraboelela/SwiftPusher
It is my own fork of NWPusher in swift. Still under development, but its basic functionality is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants