Synchra.24
menu_bookDocumentation
Practical guides for setup and development

Find guides for getting started, building workflows and adding your own tools to your company workspace.

folderEmbedded services

Launching in the web version

Web access, environment definition, external service, and mobile bridge compatibility.

Machine translation

Launching in the web version

In the service settings, enable Allow in the web version and save the changes. For the widget, the switch is located in the bar Widget Settings, for a regular service — Service availability. For a new embedded service, the same switch is available when creating it. It is disabled by default: existing services do not appear on the web automatically. There is an independent switch nearby Allow in the mobile version, enabled by default. You can leave the service available on only one platform.

The service will appear in the side menu. Services with the specified name and icon. It participates in the menu search and in the personal setting of the visibility of sections. After saving or publishing, the menu is updated. When clicking on the service item, it opens inside the normal workspace with the side menu saved. The service area fills the remaining height of the screen under the header; an indentation of 20 pixels remains at the bottom, including in a light theme and on a narrow screen. Long content scrolls inside the service area.

The display also depends on the license. Applications, the general activation of the service, the authority and the list of available employees. The embedded service requires a published version: the draft does not get into the working menu. Disabling web access does not disable the mobile service or delete data. The direct link does not bypass access checks; the web bridge server re-checks availability before data operations.

The service opens via an external link in an embedded window. His site should allow embedding via its own CSP/X-Frame-Options headers. If this is prohibited, use Open separately. When opened separately, the authorized Synchra24 bridge is unavailable. External link sites do not receive a custom or corporate API token.

Checking the execution environment

A synchronous method is available in the embedded service:

const runtime = synchra.getRuntime(); // 'web' или 'mobile'
if (runtime === 'mobile') {
  const photo = await synchra.takePhoto({ upload: true });
  // Обработайте результат нативной камеры.
} else {
  // Собственная веб-реализация: например, обычный input type="file".
  document.querySelector('#web-file-input')?.click();
}

isSynchraIntegrated() checks the accessibility of the bridge, and getRuntime() defines the environment: these are different checks. Do not define the mobile environment by the presence of ReactNativeWebView: the web engine uses a compatible transport. Native actions on the web do not open the camera, geolocation, or phone dialogs: they return {runtime: 'web', supported: false, ignored: true}. This is not a successful acquisition of photos or coordinates. Unknown methods and arbitrary ones api.request they are not resolved automatically.

Verification is available for an external service using its own SDK version. window.getSynchraRuntime?.() ?? 'web'. The mobile app installs this feature before the page loads. Method synchra.getRuntime() It is provided by the built-in engine, and not by any old version of the npm package. The web-based alternative is subject to browser and sandbox restrictions; a mobile call is not automatically converted to a browser-based one.

External service in the browser

The application on the link must allow embedding in the Synchra24 page. Support for its functions in the browser depends on the version of the integration library used. Check the connection via isSynchraIntegrated() and handle the unavailability of the desired method.

Use public methods integration libraries. The built-in editor connects the library automatically; the external application uses its own installed version. You cannot expect that all the features of a mobile application are automatically available in the browser.

If the site does not allow embedding, open it separately. Synchra24 integration functions are not available in a separate tab. Do not pass the user's login tokens in the page address.

Phone access and restrictions

In the mobile application, the published service opens without a separate login to the web version. Access depends on the company's subscription, employee role, and service settings, including Allow in the mobile version. Disabling the mobile display does not change the web display or delete data.

Embedded services need an internet connection: offline operation is not supported yet. When opening a link in a regular browser, you will need to log in to Synchra24.