Get Current App Connection
webflow.getCurrentAppConnection()
Get the current App Connection identifier, if any.
Use this method on initial load of an App to determine whether the App was launched via an “App Connection” button in the Designer. The App can then choose to show a different experience based on the information received.
Syntax
Returns
Promise<string
| null
>
If the App was launched from an App connection, this method will return a Promise that resolves to the string identifier for the App Connection. Otherwise, it returns a Promise resolving to null
.
Example
This example is for an App written in React. This code would be placed on the index page of the App