theiOSDude
theiOSDude

Reputation: 1470

APNS for .net Framework 2

I am wishing to use Apple Push Notifications generated using calls to a web service which has a target framework version of 2.0.

I am aware that System.Runtime.Serialization.Json is not supported until 3.5 but I'm not wishing to move.

With that in mind, I cant use 'apns-sharp' " http://code.google.com/p/apns-sharp/ " which is an open source libary that I could have embedded into my web service application.

So, without upgrading my .net Framework, what would you guys suggest?

Thanks

Upvotes: 0

Views: 1152

Answers (3)

Tal Aloni
Tal Aloni

Reputation: 1519

APNS-Sharp is, in fact, .Net Framework 2.0 compatible. in the past you had to remove the unnecessary .Net 3.5 assembly references and using statements, my commit took care of that.

Download the source code, change the target framework to .Net 2.0 and build a .Net 2.0 compatible dll. (You also need to reference Newtonsoft.Json.dll for .Net 2.0).

Upvotes: 1

DavidJBerman
DavidJBerman

Reputation: 955

Have you tried JSON.NET? It's a NuGet package too so easy to install. You can use it for the JSON serialization.

Upvotes: 1

Michaël
Michaël

Reputation: 6734

You can write you own notification service with the .net framework 2, helped by apns sharp. It's not very difficult.

Upvotes: 0

Related Questions