Remote Push Notifications
Remote push notifications are not yet a released, supported integration. The Notifications extension is not published as a NuGet package, and there is no Wisej-4-Hybrid-PushNotifications package. See Platform Capabilities. The older Wisej 3 install recipe and DeviceRemoteNotification snippet are not a supported 4.1 setup.
For application-scheduled notifications, start with Notifications and the core DeviceLocalNotification reference. Local notifications do not require an APNS or FCM server.
How Remote Push Notifications Work
- The native client requests permission and registers with Apple Push Notification Service (APNS) or Firebase Cloud Messaging (FCM).
- The provider returns a device token. The application sends the token to its own authenticated server and updates it when it changes.
- The server sends a notification through the provider using its server credentials.
- The native client processes receipt and user interaction, including foreground, background and cold-start cases.
These are platform requirements. Provider credentials, Apple entitlements and provisioning, Android Firebase configuration, and OS permissions must be configured for the actual application.
Setup
There is no NuGet-based setup for the Notifications extension yet. The work-in-progress Wisej-facing API uses the namespace Wisej.Hybrid.Notification, DeviceNotifications.RegisterForRemoteNotifications(), and DeviceNotificationsInfo.RemoteToken. Token and notification events are exposed on the information module, rather than on the obsolete DeviceRemoteNotification type. These names may change before the extension is released.
NuGet Packages
See Extensions for the package pairs that are published.
Register Client Extension
Registering the client extension does not configure the notification provider. Provider credentials and platform configuration must be set up separately for each application.
Registering for Push Notifications
The former registration snippet used types and events that do not match the current extension. No registration example is available yet.
Processing Push Notifications
Acceptance testing must cover denied permissions, failed provider registration, refreshed tokens, payload delivery while the app is open, delivery while backgrounded, and opening the app from a notification. Test on the intended physical devices with the application's signing and provider configuration.
Platform Capabilities describes the current limits.