Communicate with APNS server over HTTP2 in Swift2 - apple-push-notifications

does anyone know how to use the new APNS provider API from Apple that was introduced in a Session of the WWDC2015? For my tests I used PushMeBaby(a OpenSource Push server from github). But this little App won't work anymore in the future. has someone implemented a HTTP2 client in Swift yet?

Unfortunately, Apple has still not released any information regarding the new APNS HTTP/2 service, or even anything regarding when information will become available.
Most developers seem to be eager to make the switch to the new endpoints, but we will all have to wait for the time being.

I'm now using this Code from Github.
For me it's actually easier to use the APNSNetwork Class directly, so i don't have to mess up with Carthage.
The Class is very easy to use and available for Swift2 and Swift3.
I hope this will help you in your Project ;-)
Best regards,
Michael

Related

OnChange on a table is available in golang driver - rethinkDB?

I am working on RethinkDB and Golang and completely new to these two Technologies/Database.
Note
GOLang driver - I am using this driver for connecting rethinkDB.
Problem
There is no onChange on a table functionality in this driver.
Note - OnChange functionality is available in rethinkDB.
Any suggestion of golang driver which supports rethinkDB onChange.
Thanks in advance
Sorry for the delayed reply I dont check StackOverflow as often as I should.
GoRethink actually does offer support for Changefeeds. Unfortunately the documentation is currently a bit lacking and I hope to work soon, until then I recommend having a look at the tests. Hopefully that should give you an idea on how to use them.
https://github.com/dancannon/gorethink/blob/master/query_table_test.go#L215
If you have any further questions regarding change feeds or any other issues with the driver let me know.
That Go driver is provided by a third party and as you note they do not seem to have yet added support for changefeeds. It is hosted on GitHub, so you could file an enhancement request. There is recent activity in their repository, so there is hope that they will add it.

CometD connection on ios7

I was asked to establish a connection using the cometD library going from ios7 to a server. After some research I came to the conclusion that my two options were Dave Duncan's DDComet, and Paul Crawford's FayeObjC. I tried using DDComet, but when I opened the github project, it came with 30+ errors. They were mainly ARC errors witch I attempted to fix, but it only ended up crashing the application. I then took a look at the FayeObjC documentation, and quickly realized that it had very little/nothing to do with cometD.
My question is: Is CometD an outdated library? If so, what should I be using as a replacement. If not, how would I be able to implement it in ios7?
CometD is not an outdated library. The last version of CometD is barely one month old.
The CometD project does not have an ObjC client.
I know of companies that have written one and maintain themselves that is fully compatible with CometD 2.x and 3.x.
It may happen that in future their implementation is open sourced.
Faye uses the Bayeux protocol, defined by the CometD project, so in theory they should be able to interoperate. However, I don't know exactly the status of either Faye or FayeObjC.
As the CometD project leader I'd love to have an ObjC client in the project, but it has not happened yet.

Support for Websockets on Android

I'm about to start a project for a client that has lots of data that needs to be real-time.
There are two mobile apps that I will be building with trigger.io, as well as a web UI, and all of these need to stay in sync.
I plan to use socket.io's WebSocket implementation with my Node.js backend for the webapp & mobile apps. This will work great on iOS and modern web browsers.
However, Android's webview does not support websockets at all. And it would simply destroy the mobile app user's data plan if socket.io used its long-polling fallback on Android.
I was wondering: is there any possibility of an implementation of Java WebSockets for trigger.io Android, then exposing that to the WebView? There is a simple implementation for phonegap
I suppose I could write a trigger.io plugin for it - but I want to be sure before I jump in to this project if this is feasible / not too hard to write a plugin for.
I used trigger.io long ago, but not since all the fanciness came out like native plugins.
If using an HTTP fallback solution isn't an option (I'd do some calculations to determine if a streaming or long-polling solution would really "destroy the mobile users's data plan") then the best solution to add WebSocket support would probably be a trigger.io plugin.
At Pusher we used a Java wrapper in PhoneGap in order to get our JavaScript library to work. However we've since added HTTP fallback so I wouldn't recommend anybody use this now. The project is here:
https://github.com/pusher/pusher-phonegap-android
The problem with the Java wrapper here (we use websocket-android-phonegap) is that it doesn't support SSL connections (if I remember correctly) and it hasn't been updated for a long time.
With that in mind when we created the Pusher Java library (which supports Android) we used the WebSocket client in Java-WebSocket because it's being actively developed and supports SSL connections. I'd recommend it.
I'd be interested to hear about the support that https://github.com/mkuklis/phonegap-websocket provides.

Is there a socket.io port to Dart?

I've taken a look at the basic websocket capabilities in Dart, using this simple example:
https://github.com/financeCoding/chat-websocket-dart
But I was wondering if there's a nice library I could use to build a realtime online game using websockets. I've had experience in this using node.js with socket.io, which worked out quite well. I need to be able to have "rooms", join rooms, leave rooms, broadcast to clients in a room, etc. as well as some nice notion of connection "health", reconnection etc. So what I'm asking is if there's a nice library for dart that has similar functionality? Even cooler would be a library on top of that library that could enable nice RPC functionality with variable syncing etc. such as http://nowjs.com/ which achieves this using socket.io. But I guess that might be too ambitious.
If anyone's had any experience or found a project which is similar to what I'm talking about, let me know :)
Duct is clone of Socket.IO in Dart which aims to be protocol-level compatible with the original implementation.
https://github.com/petrhosek/duct
Sorry, at the time of this writing, I'm not aware of a socket.io port for Dart. socket.io is nice because it has a bunch of implementation options for browsers that don't support Web sockets.
Sounds like a good idea for a hackathon project!

WSO2 WSF/Ruby - anyone using it?

Have been using Savon for my webservice stuff so far, but need to talk to a more "secure" service now, needing WS Addressing and WS Security Extensions.
Have started to extend this fork of Savon to handle it, but then found WSO2 WSF/Ruby - so wondering if anyone has any experience of it, pros/cons etc. That is, is it worth my switching to it? I cant see much out there about it, besides on their own site - their forums seem awfully quiet, which does not bode well.
Currently dev on OSX/Snow Leopard, deploying on CentOS.
Thanks in advance,
Chris
It does not seem so (from the lack of replies...)

Resources