Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
package com.codename1.backend.push
Sending push notifications from a server through the Codename One push service.
PushNotification builds the message, in the same envelope the app’s
PushClient receives, including the commands that update a widget or a Live
Activity. PushTarget names a device by provider and token, and reads the
device keys the app registers. CloudPush sends the message with the
application’s server API key and answers a PushResult.
Server code: this package is not available in the app.
Types
class CloudPush | Sends push notifications through the Codename One push service. |
class PushNotification | A push message in the schema-3 envelope the Codename One push service delivers and the app’s PushClient receives. |
class PushResult | What the push service answered to one CloudPush send. |
class PushTarget | One device to deliver a push to: the provider that owns the device and the token that provider issued for it. |