How to check if app is opened inside symphony or directly in browser?
How to check if app is opened inside symphony or directly in browser?
Hi Ankit,
Thank you for clarifying,
When you launch the extension application - it first initialises the '**SYMPHONY.services**'.
You can run '**SYMPHONY.services.subscribe()**' to subscribe your local application.
The '**SYMPHONY.services.subscribe()**' is an important process for the extension application registration.
It finds a service - either local or remote - that has been registered and returns it. It will returns false if the service does not exist.
Failure to subscribe to a Symphony service is the indicator that your in a web browser - as you will see the response as '**false**' confirming that it is launched from with the web browser.
You will be able to find out more information on the following documentation:
https://docs.developers.symphony.com/building-extension-applications-on-symphony/overview-of-extension-api/extension-api-services/register-and-subscribe
Please let us know should you have any further question or feedback.
Hi Ankit,
Thank you for clarifying,
When you launch the extension application - it first initialises the '**SYMPHONY.services**'.
You can run '**SYMPHONY.services.subscribe()**' to subscribe your local application.
The '**SYMPHONY.services.subscribe()**' is an important process for the extension application registration.
It finds a service - either local or remote - that has been registered and returns it. It will returns false if the service does not exist.
Failure to subscribe to a Symphony service is the indicator that your in a web browser - as you will see the response as 'false'.
You will be able to find out more information on the following documentation:
https://docs.developers.symphony.com/building-extension-applications-on-symphony/overview-of-extension-api/extension-api-services/register-and-subscribe
Please let us know should you have any further question or feedback.
How to check if app is opened inside symphony or directly in browser?
Hi Ankit,
Thank you for clarifying,
When you launch the extension application - it first initialises the '**SYMPHONY.services**'.
You can run '**SYMPHONY.services.subscribe()**' to subscribe your local application.
The '**SYMPHONY.services.subscribe()**' is an important process for the extension application registration.
It finds a service - either local or remote - that has been registered and returns it. It will returns false if the service does not exist.
Failure to subscribe to a Symphony service is the indicator that your in a web browser - as you will see the response as 'false'.
You will be able to find out more information on the following documentation:
https://docs.developers.symphony.com/building-extension-applications-on-symphony/overview-of-extension-api/extension-api-services/register-and-subscribe
Please let us know should you have any further question or feedback.