ArashDev Posted September 24, 2023 Posted September 24, 2023 (edited) hi I wanna use update check url in my plugins. so I did steps: update check URL: https://example.com/updates/plugins/topic/check.php.json my current plugin version: 1.0.1 (10001) Contents inside the check.php.json file: { "longversion": "10002", "version": "2.1", "released": 1693872000, } The problem right now is that it doesn't show in the list of installed plugins that the plugin has a new update. what's wrong? Edited September 24, 2023 by Arash.Ranjbar
Management terabyte Posted September 24, 2023 Management Posted September 24, 2023 You are missing the update url, the only value you can omit is releasenotes: /* Did we get all the information we need? */ if ( !isset( $response['version'], $response['longversion'], $response['released'], $response['updateurl'] ) ) { throw new \RuntimeException( \IPS\Lang::load( \IPS\Lang::defaultLanguage() )->get( 'update_check_missing' ) ); } IPS guide: https://invisioncommunity.com/developers/docs/development/checking-for-updates-in-your-application-plugin-language-or-theme-r49/ ArashDev 1 Board Rules - Available Products - Need a Custom Work? < Don't PM me for support, post in the forum or submit a ticket from the client area instead! >
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now