@communities-webruntime/mobile
v1.66.8
Published
Communities Mobile runtime module - @webruntime/mobile module
Downloads
13
Readme
@communities-webruntime/mobile
Summary
This package contains the code which generates a separate resource type (framework://lwr_mobile
). This extra JavaScript resource is used to:
- provide an eventing bridge to the native hybrid app container
- replace some of the default behavior defined by the client-side framework.
This resource is loaded automatically by the main framework when it is detected that we are in the hybrid container (AKA Mobile Publisher). The detection is done by looking for specific user agent strings which are injected by the hybrid container as well as the enablement of an org permission on the server-side.
Some examples of some custom behavior in the hybrid container are: - Custom handling of links in the mobile app to not open in a new WebView
- Custom behavior for login/logout
- Custom routing hooks to dispatch events known by the hybrid container on route callback