Push Notifications
guppylab
NativePHP^3.0iOS15.0+Android21+
Push notifications for NativePHP Mobile — direct APNs (.p8 key, no Firebase SDK) on iOS and Firebase Cloud Messaging on Android.
Features
- iOS — direct APNs via
.p8key, no Firebase dependency - Android — FCM with
google-services.json MessageReceivedevent — fires for foreground and silent/data-only pushesNotificationTappedevent — fires on tap including cold-start tapsTokenGeneratedevent — device token registrationPush::unenroll()— delete token and stop receiving pushesPush::setBadge(n)/Push::clearBadge()— iOS badge count controlPush::isSupported()— detect simulator or missinggoogle-services.json- Permission states —
granted,denied,not_determined,provisional,ephemeral - Provisional permission support on iOS
- JavaScript API with TypeScript definitions for Livewire v3/v4 and Inertia (Vue/React)
Installation
composer require guppylab/plugin-push
php artisan native:plugin:register guppylab/plugin-push
php artisan vendor:publish --tag=push-config