apns4jJava APNS 开源库
apns4j 是 Apple Push Notification Service 的 Java 实现。
Maven:
<dependency> <groupId>com.github.teaey</groupId> <artifactId>apns4j</artifactId> <version>1.0.1</version> </dependency>
示例代码:
KeyStoreWraper keyStore = KeyStoreHelper.getKeyStoreWraper("XXXXXXXX.p12", keyStorePasswd); AppleNotificationServer appleNotificationServer = new AppleNotificationServer(AppleGateway.ENV_DEVELOPMENT, keyStore); SecurityConnectionFactory connectionFactory = new SecurityConnectionFactory(appleNotificationServer); SecurityConnection connection = connectionFactory.getSecurityConnection(); NotifyPayload notifyPayload = new NotifyPayload(); //notifyPayload.setAlert("TEST1"); notifyPayload.setBadge(2); notifyPayload.setSound("default"); notifyPayload.setAlertBody("Pushed By apns4j"); notifyPayload.setAlertActionLocKey("Button Text"); connection.writeAndFlush(deviceTokenString, notifyPayload); connection.close();
评论
CinderC++ 开源库
Cinder是一个C++开源库,用于创建高质量的创意图。Cinder支持MacOSX,Windows和iOS.要求Xcode4.4或者VisualC++2010。
CinderC++ 开源库
0
IBAnimatableiOS 开源库
IBAnimatable是一个帮助我们在InterfaceBuilder和Swiftplayground里面设计UI,交互,导航模式,换场和动画的开源库。主要功能一个工具覆盖原型到可提交到AppSto
IBAnimatableiOS 开源库
0
C3.js开源图表库
C3.js是一个基于D3.js的可重用的开源图表库。使用非常舒服、充分可定制性和控制性。支持多种图表类型。线图示例代码:var chart = c3.generate({ data: {
C3.js开源图表库
0
JFugue开源编程库
JFugue 是一个开放源代码编程库,它允许人们使用 Java编程语言来编程音乐,而无需 MIDI 的复杂性。它由DavidKoelle于2002年首次发布。当前版本是JFugue5.0,已于2015
JFugue开源编程库
0