同时发送通知和消息,只能收到通知

cf4df5200d617b03dddb
2018-12-07 07:16 1.2k 0

```
pushPayload = PushPayload.newBuilder().setPlatform(Platform.android_ios())
.setAudience(Audience.alias(aliasArray))

                    .setNotification(Notification.newBuilder()
                            .setAlert(alertNotificationAndMsgInNo)
                            .addPlatformNotification(AndroidNotification.newBuilder()
                                    .addExtras(paramsNotificationAndMsgInNo).build())
                            .addPlatformNotification(IosNotification.newBuilder()
                                    .setSound("happy")
                                    .addExtras(paramsNotificationAndMsgInNo).build())
                            .build())
                    .setMessage(Message.newBuilder()
                            .setMsgContent(msgContentNotificationAndMsgInMsg)
                            .setContentType(contentTypeNotificationAndMsgInMsg)
                            .addExtras(paramsNotificationAndMsgInMsg).build())
                    .setOptions(Options.newBuilder()
                            .setApnsProduction(pushConf.getBoolean("apnsProduction", false))
                            .build())
                    .build();

1个回答

热门排序