Jump to content

Recommended Posts

Posted (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 by Arash.Ranjbar
  • Management
Posted

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/

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! >

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.