Skip to content

[bug]: Crash on storage of user token with wasm #21

@Ortes

Description

@Ortes

Description

Hive is not compatible with wasm and seems to be not maintained anymore. Maybe try with hive_ce which is wasm compatible

I'm unable to locate the exact line that trigger the crash but I think it is insights.userToken = 'user-123';

Client

Insights

Version

1.0.2

Relevant log output

UnimplementedError
  at module0.Error._throwWithCurrentStackTrace (https://dev-app.fullphysio.com/main.dart.wasm:wasm-function[1417]:0x2d5e10)
  at module0.HiveImpl._openBox inner (https://dev-app.fullphysio.com/main.dart.wasm:wasm-function[8281]:0x3b770f)
  at module0.HiveImpl.openBox inner (https://dev-app.fullphysio.com/main.dart.wasm:wasm-function[8280]:0x3b7511)
  at module0.UserTokenStorage._box inner (https://dev-app.fullphysio.com/main.dart.wasm:wasm-function[8279]:0x3b742e)
  at module0.UserTokenStorage.read inner (https://dev-app.fullphysio.com/main.dart.wasm:wasm-function[8264]:0x3b6ebe)
  at module0.algoliaInsights initializer

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions