salute-developers / salutejs-client

7 stars 7 forks source link

Error: window.AssistantHost is not ready. The ready method has the type "undefined" #154

Closed azeek21 closed 1 year ago

azeek21 commented 1 year ago

I think this has happened before, I couldn't solve this for some time. Everything working fine with createSmartappDebugger on dev mode. Related: #80 #81

Here's a screenshot. I am using latest NextJs and doing an export, no ssr of any kind. image

I tried to bum up the timeout to 1 second and retry counts to 10 and even after 10 seconds it doesn't seem to work. noready

sasha-tlt commented 1 year ago

Hi! It is a expected behavior. You are making a canvas app and you must start it on a device or on a app (salute, sbol) on android/ios. The dev-mode (createSmartAppDebugger) emulates a device (or app), the prod-mode (createAssistant) expects a device (or app) environment

azeek21 commented 1 year ago

That makes sense. Thanks for taking your time to explain it.