javapns

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

iOS MDM - How to close or stop connection after device responds back with valid response

扶醉桌前 提交于 2019-12-22 12:30:47
问题 We are building an iOS MDM server to manage iOS devices. Below were the steps which were involved in enrolling an iOS device into the MDM server Send enroll configuration Perform SCEP send MDM server certificate. Create APNS certificate. Send push notification to the device. The device receives the push notification and contacts the MDM server's "serverUrl". It responds with Status = "Idle" shown below <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"

Java APNS Certificate Error with “DerInputStream.getLength(): lengthTag=109, too big.”

强颜欢笑 提交于 2019-11-30 17:37:21
When I try to using java APNS to send the push notification to iOS, I got this error message: com.notnoop.exceptions.InvalidSSLConfig: java.io.IOException: DerInputStream.getLength(): lengthTag=109, too big. I already try converting the certificate to Personal Information Exchange (.p12) also getting the same error. Anyone know to problem and how to resolve it? Here are my java code: ApnsService service = APNS.newService() .withCert("src/net/notification/ck.jks", "******") .withSandboxDestination() .build(); String payload = APNS.newPayload().alertBody(record.getSendMsg()).build(); String

Java APNS Certificate Error with “DerInputStream.getLength(): lengthTag=109, too big.”

六眼飞鱼酱① 提交于 2019-11-30 01:18:07
问题 When I try to using java APNS to send the push notification to iOS, I got this error message: com.notnoop.exceptions.InvalidSSLConfig: java.io.IOException: DerInputStream.getLength(): lengthTag=109, too big. I already try converting the certificate to Personal Information Exchange (.p12) also getting the same error. Anyone know to problem and how to resolve it? Here are my java code: ApnsService service = APNS.newService() .withCert("src/net/notification/ck.jks", "******")

Does APNS Feedback service no longer exist as per new APIs?

旧巷老猫 提交于 2019-11-27 20:18:05
I was going through updated official APNS documentation and it clearly says, All developers should migrate their remote notification provider servers to the more capable and more efficient HTTP/2-based API described in APNs Provider API. But the new APNs Provider API doesn't seem to have old APNS Feedback Service. They have changed endpoint URLs which doesn't have feedback service endpoint. Also looks the error codes are upgraded now, which includes below error code, Unregistered - The device token is inactive for the specified topic. So aren't we suppose to call the APNS Feedback service

Maven: resource binary changes file size after build

我只是一个虾纸丫 提交于 2019-11-27 04:24:26
I am using the appengine-maven-plugin to build my Java Google App Engine project. I include .p12 certificates in a WEB-INF sub-folder When I build my application, the filesize of the certificate increases by a few KB. This renders it invalid. I have seen the same happen to .jks certificates too. I have verified the validity of the certificate pre-build and used the same method to confirm the invalidity of the post-build certificate. Can anyone tell me why the file size is changing and why it is not simply copied to the WAR? Thanks for your help. Another solution is to disable filtering of .p12

Does APNS Feedback service no longer exist as per new APIs?

£可爱£侵袭症+ 提交于 2019-11-26 20:02:57
问题 I was going through updated official APNS documentation and it clearly says, All developers should migrate their remote notification provider servers to the more capable and more efficient HTTP/2-based API described in APNs Provider API. But the new APNs Provider API doesn't seem to have old APNS Feedback Service. They have changed endpoint URLs which doesn't have feedback service endpoint. Also looks the error codes are upgraded now, which includes below error code, Unregistered - The device

Maven: resource binary changes file size after build

不打扰是莪最后的温柔 提交于 2019-11-26 11:09:40
问题 I am using the appengine-maven-plugin to build my Java Google App Engine project. I include .p12 certificates in a WEB-INF sub-folder When I build my application, the filesize of the certificate increases by a few KB. This renders it invalid. I have seen the same happen to .jks certificates too. I have verified the validity of the certificate pre-build and used the same method to confirm the invalidity of the post-build certificate. Can anyone tell me why the file size is changing and why it