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

uno-bootstrap.js does not load image source from app manifest during initProgress #131

Open
1 of 11 tasks
bradtwurst opened this issue Oct 30, 2019 · 0 comments
Open
1 of 11 tasks

Comments

@bradtwurst
Copy link

Current behavior

uno-bootstrap.js does not load image source from app manifest during initProgress.

the line of code

const manifest = window["UnoAppManifest"];

always returns undefined as the initializeRequire function has not yet been called.

Expected behavior

the UnoAppManifest information needs to be initalized earlier

How to reproduce it (as minimally and precisely as possible)

  1. Define a splashScreenImage in appmanifest.js
  2. in browser dev tools, place a break point in initProgress function
  3. load the wasm web page and interrogate the value for manifest variable. it shows undefined instead of the correct json object.

Environment

Nuget Package: Uno.Wasm.Bootstrap

Package Version(s): 1.0.0-dev.302

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • Windows
  • Build tasks
  • Solution Templates

Visual Studio:

  • 2017 (version: )
  • 2019 (version: )
  • for Mac (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

new to uno platform development - not exactly sure how to correct situation as it appears that initializeRequire shouldn't be called any earlier in the initialization process

bradtwurst added a commit to bradtwurst/Uno.Wasm.Bootstrap that referenced this issue Oct 30, 2019
unoplatform#131 - load AppManifest.js earlier in init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant