API Reference

Challenges

To integrate Challenges from Nudge into Web, you need to make sure that the basic integration of the Nudge Core SDK is done, if you have not already done it, check here.

Please also make sure that you have tagged all the relevant UI components into theids as defined in the above docs.

 var challengesUi = new ChallengesUi();

Once you have integrated the Nudge Code SDK, just add the above-defined variable to the list in theplugins property of NudgeProvider

<NudgeProvider 
	app={nudge}
	plugins={[
		challengesUi,
]}>
.. 
..
..
</NudgeProvider>

That's it!

For non-JSX based libraries, use the following snippet:

NudgeProvider({app: nudge, plugins: [challengesUi]});

Our Nudge Core would now trigger Challenges defined on your Dashboard using the challengesUi plugin.