App Settings
App Settings allow you to add custom HTML pages, that users can view to modify your app's settings. App Settings can be used for global configuration parameters for your app.
const Homey = require('homey');
class App extends Homey.App {
async onInit() {
const username = this.homey.settings.get('username');
// ...
}
}
module.exports = App;Creating an App Settings page
<head>
<!-- ... -->
<script
type="text/javascript"
src="/homey.js"
data-origin="settings"
></script>
</head>Example

Settings View API
Homey.ready()
Homey.ready()Homey.get( [String name,] Function callback )
Homey.get( [String name,] Function callback )Homey.set( String name, Mixed value, Function callback )
Homey.set( String name, Mixed value, Function callback )Homey.unset( String name, Function callback )
Homey.unset( String name, Function callback )Homey.on( String event, Function callback )
Homey.on( String event, Function callback )Homey.api( String method, String path, Mixed body, Function callback )
Homey.api( String method, String path, Mixed body, Function callback )Homey.alert( String message, Function callback )
Homey.alert( String message, Function callback )Homey.confirm( String message, Function callback )
Homey.confirm( String message, Function callback )Homey.popup( String url[, Object opts] )
Homey.popup( String url[, Object opts] )Homey.openURL( String url )
Homey.openURL( String url )Homey.__( String key [, Object tokens] )
Homey.__( String key [, Object tokens] )Last updated
Was this helpful?