No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    console.log working in Chrome but not on iPhone via Safari

    Framework
    con
    2
    4
    607
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      omgwalt last edited by

      This is weird.

      If I run:
      quasar dev -m spa

      I get console.log entries to output in the Chrome inspector (along with errors, etc.).

      But if I run:
      quasar dev -m capacitor -T ios

      with my iPhone connected to my Mac and wired up to Safari via the Develop menu, I get the console inspector window in Safari to appear for each page in my app that I load, but I don’t get any output in the console area of the Safari inspector.

      It’s very perplexing. Anyone know why I’m getting this result?

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @omgwalt last edited by dobbel

        @omgwalt

        what if you and run android/capacitor with chrome inspector?

        Maybe this will help:
        https://capacitorjs.com/docs/apis/console

        1 Reply Last reply Reply Quote 0
        • O
          omgwalt last edited by

          @dobbel Thanks for the suggestions. If I use Android Emulator with Chrome Inspector, I can see entries in console.log.

          I tried deleting the src-capacitor folder to see if that would help, but I’m still not seeing entries in console.log with the ios/safari inspect setup.

          I took a look at capacitor.config.json per your other suggestion. There is no “hide logs” setting. The only params listed are for: appID, appName, bundledWebRuntime, npmclient, and webDir.

          1 Reply Last reply Reply Quote 0
          • O
            omgwalt last edited by

            @dobbel Oh, wait! I see what’s happening. Safari is popping up an additional JSContext inspector for my app every time I click a page or a control. The main inspector for the app gets hidden as a result. All I had to do was to uncheck “Automatically Show Web Inspector for JSContexts” in Safari under Develop > Simulator, and the issue went away.

            Hopefully this will help someone else who runs into a similar issue at some point in time.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post