javaapns

Unable to set header field “apns-push-type” in Apple Push Notification in javapns

会有一股神秘感。 提交于 2021-02-17 06:57:07
问题 I am unable to find any option (method, class, etc.) to set http header information using apns library. This question is alrady present here: Unable to set header field "apns-push-type" in Apple Push Notification in javapns But not answered so asking again. Sorry to post duplicate question. 来源: https://stackoverflow.com/questions/61278008/unable-to-set-header-field-apns-push-type-in-apple-push-notification-in-javapn

Unable to set header field “apns-push-type” in Apple Push Notification in javapns

て烟熏妆下的殇ゞ 提交于 2020-06-01 02:36:05
问题 I have a legacy code which send notifications to iOS. public List<NotificationResponse> sendNotifications(Constants.App app, List<String> deviceTokens, String payload, List<String> userId, String sender, String appKey) { List<NotificationResponse> response = new ArrayList<NotificationResponse>(); String keystore = serviceKeyMap.get(app).getApiServiceKey(); String password = serviceKeyMap.get(app).getPassword(); String toUser = StringUtils.EMPTY; Integer appId = NotificationHistoryHelper

Which certificate should be used on app Server for waking iOS app using Pushkit and APNS?

▼魔方 西西 提交于 2020-04-18 05:46:01
问题 I am using Websocket in my iOS app for data transfer. But, since sometimes when the app is suspended in the background, the socket breaks. In that case, I use Voip push to iOS app to wake app up. //called on appDidFinishLaunching //register for voip notifications PKPushRegistry *voipRegistry = [[PKPushRegistry alloc] initWithQueue:dispatch_get_main_queue()]; voipRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP]; voipRegistry.delegate = self; //delegate methods for `PushKit`

Java TLS socket : No trusted certificate found

随声附和 提交于 2019-12-30 05:24:04
问题 Let me explain quickly what I'm trying to do. I'm trying to build my own Apple's Push Notification service in java (for testing purposes). This service works thanks to TLS socket. I have a java client to create a TLS socket to send push notifications to the APNs. I changed the host url to redirect the socket to localhost:2195. Now I'm trying to write a java socket server to get the notification request. However, I get an exception during the handshake and can't find how to fix it. Note : I'm

iOS MDM — Sending MDM Push Notifications from Java?

≡放荡痞女 提交于 2019-12-24 07:49:09
问题 I am working on a simple iOS Mobile Device Management (MDM) server in Java as a mental exercise and proof-of-concept. Up to now, I have a series of JAX-RS RESTful service endpoints that allow me to do: Initial device enrollment Initial MDM certificate enrollment (SCEP) Device certificate enrollment (SCEP) MDM profile payload installation My MDM profile looks something like this. It configures the device certificate using SCEP and installs information about the checkin URL and MDM itself: <

APNS - Can't send notification to iOS device using Java

Deadly 提交于 2019-12-11 20:37:12
问题 I need to get this working but I'm completely out of options...any help would be greatly appreciated. I'm trying to send notifications to my iOS device using Java and have followed many tutorials and forum posts, mainly these: raywenderlich.com, JavaPNS Basic Example, and the java-apns example shown below. I am, however, able to send notifications using PHP. Can someone see anything I'm doing wrong? I've been working for several days on this and can't figure out what the issue is b/c I've