how can I trigger the sayText function if i added the avatar with iframe?
We put together a simple React code example that demonstrates loading the SitePal character in an iframe and using API calls. As long as both host page and frame page are loaded from the same domain, this should work fine.
Download code example here -
Hope this helps,
The SitePal Team
When the SitePal embed code is placed in an iFrame - you need to setup as "licensed domain" both the domains:
- the frame page domain
- the host page domain
Please try and let us know if you still see a problem.
i currently tested the avatar with the normal npm package and the resulting SitePal component. There the sayText works normally. With iframe the function is not available. How can I trigger it in react? Do you have a sample code?
Thank you very much!
Customer support service by UserEcho