SDK tasks

What is the SDK Front End task?

The SDK Front End task in claimr is a fully developer-triggered task, designed for maximum flexibility. Unlike other tasks that rely on user-facing actions, SDK tasks are triggered manually from your own system using claimr’s SDK.

Use SDK tasks to:

  • Reward users for in-product actions (e.g., completing onboarding, watching a full tutorial, etc.)

  • Trigger rewards based on events tracked in your own platform

  • Seamlessly integrate claimr into your existing app or website

Create an SDK task

To create this task in claimr

  1. Go to your campaign and click Create new task.

  2. Under the Category, select SDK and choose SDK Front End.

  3. Click Continue. You’ll land on the task settings screen.

You’ll see that:

  • No customization is required in the standard UI.

  • The task widget only shows task status and basic instructions.

If needed, you can add instructions for users in the task description. For example: “Visit our site and complete the onboarding flow to unlock your reward.”

This can help guide users through what they need to do on your platform before the task is completed in the background.

How the task is completed

To complete an SDK task, you must call the method:

complete_task(task_id)

Replace taskId with the actual ID of the SDK task. Once this method is successfully executed from your application, the task is marked as complete and the user is rewarded.

You can learn more about this method in our SDK documentation.

Use case example

Let’s say you run a crypto wallet app. You want users to receive rewards only after they import an existing wallet and activate two-factor authentication. Once these steps are verified in your system, you can call the completeTask method via claimr SDK, and the user gets rewarded within the claimr quest.

Last updated

Was this helpful?