Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: CapacitorHttp - Loading a WASM file fails on native iOS and Android #6123

Closed
KevinKelchen opened this issue Nov 29, 2022 · 1 comment · Fixed by #6818
Closed

bug: CapacitorHttp - Loading a WASM file fails on native iOS and Android #6123

KevinKelchen opened this issue Nov 29, 2022 · 1 comment · Fixed by #6818

Comments

@KevinKelchen
Copy link

KevinKelchen commented Nov 29, 2022

Bug Report

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 4.5.0
  @capacitor/core: 4.5.0
  @capacitor/android: 4.5.0
  @capacitor/ios: 4.5.0

Installed Dependencies:

  @capacitor/cli: 4.5.0
  @capacitor/android: 4.5.0
  @capacitor/core: 4.5.0
  @capacitor/ios: 4.5.0

[success] iOS looking great! 👌
[success] Android looking great! 👌

Platform(s)

Native iOS
Native Android

Current Behavior

On native iOS and Android, there appears to be an issue with loading a WASM file via fetch (which uses CapacitorHttp at a lower level) and calling WebAssembly.instantiateStreaming() on it. The repro uses the esri ArcGIS API for JavaScript v3.x which loads a WASM file. I don't know much about using WASM, so I did not tear down to a more minimal repro.

Native iOS without CapacitorHttp, native Android without CapacitorHttp, and Web work fine.

Expected Behavior

Native iOS and Android should work like the Web's fetch when loading a WASM file in this way.

Code Reproduction

https://github.com/KevinKelchen/capacitor-http-wasm-issue#steps-to-reproduce

Other Technical Details

npm --version output: 8.15.0

node --version output: v16.17.0

pod --version output (iOS issues only): 1.11.3

Additional Context

Copy link

ionitron-bot bot commented Feb 29, 2024

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants