Receptive's javascript integration works great with single-page apps built with Javascript frameworks, we use Angular ourselves.
In the traditional integration, you can decide server-side if the Receptive js should run for a given user on a given page, but for a single-page app, you might not know at page load time.
In this case, there's a slight variation required:
- Load your app as usual.
- Authenticate your user as usual.
- Populate the receptiveAppSettings data object with your user and account data.
- Call ReceptivePublicLib.init() once
Now you can follow the How to integrate Receptive with your product documentation, and set up a link or button that users click to sign into Receptive or open the widget.
Comments
1 comment
ReceptivePublicLib is actually receptivePublicLib isn't it?
Would be convenient if receptivePublicLib.init() took the settings as an optional argument
Please sign in to leave a comment.