Browse docs

Phone and Tablet Providers

Integrate custom apps through Base's active phone and tablet adapters.

Who is this page for?

This is an optional developer reference for integrating your own scripts with the configured phone or external tablet. You do not need to call these exports to install or use Sky job resources.

If you use an external phone or tablet, select its integration in Sky Base's configuration and follow Base setup. The Sky job resources use the shared adapters themselves. For example, OpenCustomPhoneApp is useful when your own script needs to open an external phone app; it is not an installation step.

These exports call the configured adapter. Provider support and result payloads depend on that adapter; registration does not install or start the external phone/tablet resource.

Phone — client

ExportPurpose
RegisterCustomPhoneApp(app)Register an app using the active provider's supported app contract
SendCustomPhoneAppMessage(identifier, data)Send data to the app
SendPhoneAppNotification(data)Send a local phone-app notification
GetPhoneNumber()Read the local number, or nil if unavailable
RegisterCustomPhoneNumber(number, handler)Register a dialable number where supported
RemoveCustomPhoneNumber(number)Remove an owned dialable number where supported
OpenCustomPhoneApp(identifier, data?)Open an app where supported

Phone — server

ExportPurpose
GetPhoneNumber(source)Read the selected player's number through the active provider
GetPhoneNumbersByIdentifiers(identifiers)Resolve up to 100 character identifiers to a map of identifier → phone number; missing numbers are omitted
SendPhoneAppNotification(data)Send a provider notification using its supported payload

Do not reuse the client notification payload on the server without checking the selected provider's targeting fields.

The directory lookup supports offline records with Sky Phone, LB/LB Unique, CodeM, okok, ESX, QB/Qbox and QS. RoadPhone delegates to its identifier lookup. NPWD, SD, 17Movement, YSeries and GKS can resolve connected characters only and return online_only as the optional second result. Providers without a directory integration return an empty map and unsupported_phone.

Sky Phone uses the character's most recently registered SIM number. Anonymous SIMs and devices merely carried by another character do not change the registered owner. This lookup does not change phone numbers or enable tracking; callers retain responsibility for access to citizen records.

The server briefly caches directory results, including missing numbers, for up to two seconds and at most 1,024 characters. Overlapping requests share pending lookups. Known Sky Phone number changes, Base number changes and provider restarts invalidate the cache immediately; other external changes become visible when the short cache expires. No complete phone table is loaded into memory.

Tablet — client

ExportPurpose
RegisterCustomTabletApp(app)Register an external-tablet app
RemoveCustomTabletApp(identifier)Remove an owned app where supported
SendCustomTabletAppMessage(identifier, event, data)Send an app event
SendTabletAppNotification(data)Send a local tablet-app notification
CloseExternalTablet()Request closure where supported

Tablet — server

SendTabletAppNotification(data, source?) sends a notification to the selected player through the active adapter.

The sd tablet adapter uses sd-phone's shared app registry with devices = "tablet". Its close operation returns false, "unsupported_provider_api" because that provider has no supported close API. Other adapters have their own capabilities.

For Sky's internal job tablet and apps, start with Jobs Base, Emergency Dispatch and tablet personalization.