Force Update
Paul (PARTek)
NativePHP^3.0 || ^4.0iOS18.0+Android26+
Cross-platform minimum-version gate and store listing opener. Reads the running app version from config('nativephp.version'), compares it via semver against a configured minimum, and opens the correct App Store or Google Play listing.
Features
ForceUpdate::configure([...])— setminimum,latest,ios_url,android_url,mode(hard/soft)ForceUpdate::status()— returnscurrent,minimum,latest,outdated,storeUrl,modeForceUpdate::isOutdated()— returnstruewhencurrent < minimumForceUpdate::openStore()— opens App Store or Play Store nativelyDEBUG/unreadable app versions are never considered outdated- No route interception — app handles its own blocking UI
- JavaScript —
openStore()available (passstoreUrlfrom server)
Installation
composer config repositories.nativephp-plugins composer https://plugins.nativephp.com
composer config http-basic.plugins.nativephp.com your@email.com your-license-key
php artisan vendor:publish --tag=nativephp-plugins-provider
composer require partek/force-update
php artisan native:plugin:register partek/force-update