Giter Site home page Giter Site logo

Comments (18)

TejasSatpute077 avatar TejasSatpute077 commented on May 24, 2024 7

@gdorbes

I'm also encountering the same issue. Could you please explain how you resolved it in detail?

from cordova-ios.

gdorbes avatar gdorbes commented on May 24, 2024 2

The issue was that in my latest app version I requested device info during script loading, before deviceready event. For some timing reason it worked with my android device, but not with my iphone one. I fixed the issue just by moving my request after deviceready.

from cordova-ios.

breautek avatar breautek commented on May 24, 2024 2

NodeJS 20, or any current LTS is sufficient.

A white screen generally means there was a JS error on launch. This often isn't reported in Xcode, but it will be reported in Safari Web Inspector.

I have a guide that details how to use the web inspector. Safari Web Inspector doesn't capture log events that occurred before it was attached, so once attached, use cmd + R with the inspector window focused, it will refresh/reload the webview. Any JS errors on launch occurring should be logged and it should give you more insight on the underlying issue.

from cordova-ios.

Jakub-Horacek avatar Jakub-Horacek commented on May 24, 2024 1

@gdorbes I have the same Issue, could you please provide more detail how have you resolved this issue? I would really appreciate it.

image

from cordova-ios.

TejasSatpute077 avatar TejasSatpute077 commented on May 24, 2024 1

Hi @Jakub-Horacek , I encountered the exact same issue before, but I managed to resolve it. Could you provide more details about the error you're facing? That way, I can offer you some assistance

from cordova-ios.

TejasSatpute077 avatar TejasSatpute077 commented on May 24, 2024 1

@Jakub-Horacek in your package.json check required node version mentioned in
"engines": {
"node": ">=18.18.2 <19"
},

and check which version of node you are using on terminal

node -v

and also check cordova version

cordova --version

and

cordova platform ls

from cordova-ios.

Jakub-Horacek avatar Jakub-Horacek commented on May 24, 2024 1

@TejasSatpute077 Okay, thank you a lot for your time.

from cordova-ios.

SevenSystems avatar SevenSystems commented on May 24, 2024

I'm getting this in a WKWebView-based app (not Cordova, but in-house framework) on Catalyst. The app seems to work fine, but it does look worrying.

from cordova-ios.

gdorbes avatar gdorbes commented on May 24, 2024

My bad: the issue was elsewhere

from cordova-ios.

arlo1990 avatar arlo1990 commented on May 24, 2024

@gdorbes what was the issue and how did you resolve?

from cordova-ios.

Jakub-Horacek avatar Jakub-Horacek commented on May 24, 2024

@TejasSatpute077 Yes, I can try to provide as many details as you need, however I am really newbie iOS developer, so I am not sure what details I need to provide you.

When I launch my app in the simulator, it is stuck on the Launch Screen and the rest of the application is not displayed. There are no errors in the XCode Log. Only the warning mentioned in my previous message.

My app is using Ionic, Cordova, Capacitor and React.

from cordova-ios.

TejasSatpute077 avatar TejasSatpute077 commented on May 24, 2024

@Jakub-Horacek if possible, provide me a screenshot of the page

from cordova-ios.

Jakub-Horacek avatar Jakub-Horacek commented on May 24, 2024

@TejasSatpute077 It is just a blank screen with app logo.
image

from cordova-ios.

TejasSatpute077 avatar TejasSatpute077 commented on May 24, 2024

@Jakub-Horacek in your config.xml file set AutoHideSplashScreen as true and clean and build project again

from cordova-ios.

Jakub-Horacek avatar Jakub-Horacek commented on May 24, 2024

@TejasSatpute077 When I set the AutoHideSplashScreen to true, the result is same, but without the logo. 😕
image

from cordova-ios.

Jakub-Horacek avatar Jakub-Horacek commented on May 24, 2024

@TejasSatpute077

There is no

"engines": {
        "node": ">=18.18.2 <19"
      }

in my package.json, however it is MANY times (thousands) in the package.lock.json and each time with different node value.
I am currently sing the v20.11.0 node version in my terminal.

I found in my package.json only this information about the cordova: "cordova-plugin-ionic": "5.5.3",
and I am using the 12.0.0 ([email protected]) in my terminal.

from cordova-ios.

TejasSatpute077 avatar TejasSatpute077 commented on May 24, 2024

@Jakub-Horacek

I encountered the same problem you're facing and resolved it by starting fresh with a new setup. Before that, I tried various solutions for the white screen issue and warnings you're experiencing, but none worked. You might want to try a fresh setup, ensuring compatibility with your current Node.js version.

from cordova-ios.

Jakub-Horacek avatar Jakub-Horacek commented on May 24, 2024

@TejasSatpute077 So I managed to successfully connect to the Safari inspector for the JSContent as @breautek mentioned in the message above.

And I have these errors and warnings in the inspector:
Screenshot 2024-04-30 at 16 51 05

The App is still not working but now I have some more informations, thank you.

from cordova-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.