Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

X-Local Fetching Failed on Testflight version #139

@louisportalest

Description

@louisportalest

Which platform(s) does your issue occur on?
iOS - 15.6

Please, provide the following version numbers that your issue occurs with:
CLI: 8.3.2
iOS: XCode version 13.4.1
nodejs: v14.18.0
Runtime(s): 8.3.2
Plugin(s): ^8.0.2

First of all, thank you for this plugin. I have a line of code that fetches a png file from local to the webview. It works perfectly fine on simulator or debug on real iphone device but when i test it on Testflight build, it return TypeError: Load failed.

Loading local resource :

this.e_sphereWebView.registerLocalResource('info', '~/app/assets/images/shared/info.png'),

Fetching from webview.js :

const fetchInfoSign1 = fetch('x-local://info') .then(response => response.blob()) .then(imageBlob => URL.createObjectURL(imageBlob)) .catch((error) => { console.dir(error) window.nsWebViewBridge.emit("log", error); window.alert("GetInfoSign " + error); });

I suspect it might related to cors issues but im not sure cause everything is working fine on simulator. Is there any special set up that i need to do for this? Please advice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions