# Launch the offerwall

Add the below code into the widget where you want to launch the offerwall from

```dart
void launchOfferwall(String appId, String userId) async{
  await launchUrlInCustomTabs(
    Uri.parse("https://wow.pubscale.com/?app_id=${appId}&user_id=${userId}"),
  );
}

Future<void> launchUrlInCustomTabs(Uri uri) async {
  final theme = Theme.of(context);
  try {
    await launchUrl(
      uri,
      options: LaunchOptions(
        barColor: theme.colorScheme.surface,
        onBarColor: theme.colorScheme.onSurface,
        barFixingEnabled: false,
      ),
    );
  } catch (e) {
      // If the URL launch fails, an exception will be thrown. (For example, if no browser app is installed on the Android device.)
    debugPrint(e.toString());
  }
}
```

### Launching the Offerwall

To launch the offerwall, simply call the launchOfferwall() method with the pubscale app id and your app's user id as the parameters.

```jsx
launchOfferwall("OFFERWALL_APP_ID", "USER_ID");
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pubscale.gitbook.io/offerwall-sdk/flutter/launch-the-offerwall.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
