/
Phone API Reference - Extended - app.init

Phone API Reference - Extended - app.init

Desk Phone API features described in this section are deprecated and supported only on the following models: D40, d45, d50, d60, d62, d65, d70

app.init

Description

Initializes the app object. Important: this should be done immediately after including the app library for consistent results. 

Basic Example: 

app.init([parameters]);

Parameters

Name

Required

Type

Default

Description

Name

Required

Type

Default

Description

onError

No

function

 

Overloads if your application wants to handle error specifically.

defaultLangLocale

No

string

 

Indicates the language file to use if the app does not have a language file for the phone's chosen language. For example, if the chosen language/locale is fr_fr, but the app does not include the file strings.fr_fr.js, then the app uses the default language file as indicated with this parameter. If no value has been defined, the phone tries to use en_us.

Related content

Phone API Reference - Extended Classes - Language
Phone API Reference - Extended Classes - Language
More like this
Phone API Reference - Extended Classes
Phone API Reference - Extended Classes
More like this
Phone API Reference - Extended - app
Phone API Reference - Extended - app
More like this
Digium Phones - Building Localized Apps
Digium Phones - Building Localized Apps
More like this
Phones - app.json File
Phones - app.json File
More like this
Phone API Reference - Extended - app.t
Phone API Reference - Extended - app.t
More like this

Return to Documentation Home I Return to Sangoma Support