OctoDev Posted October 19, 2021 Share Posted October 19, 2021 Where would I use this, any sample code? Link to comment Share on other sites More sharing options...
Daniel F Posted October 19, 2021 Share Posted October 19, 2021 What have you tried till yet? It's a simple method which returns true/false depending on your condition in this method. Link to comment Share on other sites More sharing options...
OctoDev Posted October 19, 2021 Author Share Posted October 19, 2021 2 hours ago, Daniel F said: What have you tried till yet? It's a simple method which returns true/false depending on your condition in this method. I want to allow offline access to my applicstion. It's a gateway that. Webhook. Placed in frontend. Link to comment Share on other sites More sharing options...
OctoDev Posted October 20, 2021 Author Share Posted October 20, 2021 To be more specific; /applications/applicationname/modules/front/app.php How can I allow offline access on my script? Link to comment Share on other sites More sharing options...
Solution WP V0RT3X Posted October 20, 2021 Solution Share Posted October 20, 2021 (edited) public function allowOfflineAccess( \IPS\Application\Module $module, $controller, $do ) { if ( $module->key == 'imprint' AND $controller == 'imprintpage' ) { return TRUE; } return parent::allowOfflineAccess( $module, $controller, $do ); } I am using this on my Imprint application. Edited October 20, 2021 by Darth Vortex Link to comment Share on other sites More sharing options...
OctoDev Posted October 21, 2021 Author Share Posted October 21, 2021 (edited) On 10/20/2021 at 2:20 PM, Darth Vortex said: public function allowOfflineAccess( \IPS\Application\Module $module, $controller, $do ) { if ( $module->key == 'imprint' AND $controller == 'imprintpage' ) { return TRUE; } return parent::allowOfflineAccess( $module, $controller, $do ); } I am using this on my Imprint application. Thank you! Edited October 21, 2021 by OctoDev Link to comment Share on other sites More sharing options...
Recommended Posts