OneSignal is a free push notification service that PNFPB can use as an alternative to Firebase. When OneSignal is enabled the plugin delegates subscription and delivery to the OneSignal platform.
Set Up OneSignal
- Create a free account at OneSignal.com.
- Create a new app (choose Web Push platform).
- Follow their wizard to configure your site’s domain.
- After setup copy your App ID and REST API Key from Settings → Keys & IDs.
Enable OneSignal in PNFPB
- In PNFPB → Push Notification Configuration select OneSignal as the provider.
- Enter your OneSignal App ID.
- Enter your OneSignal REST API Key.
- Save settings.
When OneSignal is active, the plugin’s own service worker and Firebase-specific scripts are not loaded. OneSignal manages its own service worker.
Coexistence with Web-to-App
You can enable webtoapp.design push alongside OneSignal so that mobile app users (Android/iOS) receive notifications via webtoapp.design while web users receive them via OneSignal.