APISonar


cn.jpush.api.push.model.Platform.android

> cn > jpush > api > push > model > Platform > android
cn APIs jpush APIs api APIs push APIs model APIs Platform APIs android APIs

Example 1
public void sendAlert_android() throws Exception {
        PushPayload payload = PushPayload.newBuilder()
                .setPlatform(Platform.android())
                .setAudience(Audience.all())
                .setNotification(Notification.newBuilder()
                        .setAlert("alert")
                        .addPlatformNotification(AndroidNotification.alert("android alert"))
                        .build())
                .build();
        PushResult result = _client.sendPush(payload);
        assertTrue(result.isResultOK());
    }