airmessage / airmessage-web

AirMessage for the web
https://web.airmessage.org
Apache License 2.0
156 stars 12 forks source link

dev version chokes on importKey #33

Closed working-name closed 1 year ago

working-name commented 1 year ago

Hello there,

Anything other than localhost seems to choke your app dead. How does one work with this?

secureStorageUtils.ts:8 Uncaught TypeError: Cannot read properties of undefined (reading 'importKey')

I passed it --host i.msg and mapped i.msg to an intranet IP - the mac hosting the server as well.

Also, why only google sign in?

tagavari commented 1 year ago

I'm assuming this error is from crypto.subtle.importKey. If you're serving the page over HTTP, then the Web Crypto API is not available.

Google sign-in is the only option because it's a login provider that almost everyone is signed up with, and has support for contacts. If you're looking to run AirMessage on PC with a direct connection, the Android app is receiving updates to be a replacement to the web app.