首页 > 解决方案 > 如何配置苹果推送通知?

问题描述

目前我已经根据 Certificate.P12 文件进行了编码。像这样:

PushNotificationPayload payload = PushNotificationBigPayload.complex();
                    payload.getMaximumPayloadSize();
                    payload.addAlert(data.getString("message"));
                    payload.addBadge(1);
                    payload.addSound("default");
                    payload.addCustomDictionary("data", data);

List<PushedNotification> NOTIFICATIONS = new ArrayList<PushedNotification>();
File file = new File(p12FilePath, "Certificates.p12");
NOTIFICATIONS.addAll(Push.payload(payload, file, "password", true, deviceList));

那么如何使用 P8 进行配置。证书文件。IOS 已提供,我有“KeyId”、“Bundle Id”、“Team ID”。那么我需要做哪些更改来配置 P8 证书文件?

标签: javaiospush-notificationnotificationsapple-push-notifications

解决方案


推荐阅读