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

    Custom webview for iOS devices

    Help
    4
    12
    3251
    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.
    • X
      xereda last edited by

      Hi,

      Just as it is for Android, is there still a need to install a plugin to implement a custom webview for iOS devices?

      Is there an officially iOS version of the crosswalk for Cordova?

      How to deal with this now !?

      Thank you for your help,

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        There isn’t. One of the reasons being Apple does not allow any other webview to be used other than its own.

        1 Reply Last reply Reply Quote 0
        • ssuess
          ssuess last edited by

          actually, you can use this: https://github.com/ionic-team/cordova-plugin-ionic-webview

          It is FAR superior to the built in one. But if you do, you MUST include <script type="text/javascript" src="cordova.js"></script> in your index.html (in dist) for it to be able to use any other plugins. And make sure to REMOVE the cordova script when building for Android.

          1 Reply Last reply Reply Quote 0
          • rstoenescu
            rstoenescu Admin last edited by

            @ssuess the cordova.js script tag is automatically injected by Quasar. Why do you say you need to add that to index.html?

            1 Reply Last reply Reply Quote 0
            • ssuess
              ssuess last edited by ssuess

              @rstoenescu I assure you 100% it is NOT. When using the ionic webview (which replaces the default one), you absolutely need to add the tag. I have done a ton of testing in this area, starting with your default template. If I stuck with the default webview, you are correct it works. But when switching to the (much better and faster) ionic plugin for the webview, other plugins will fail unless this tag is inserted into the html. Try it, you will see.

              1 Reply Last reply Reply Quote 0
              • rstoenescu
                rstoenescu Admin last edited by

                @ssuess Ah, ok, we’re talking about a custom webview, not the default one, in which case I need to add support for that too. The cordova environment detection needs to be enhanced to detect that webview too.

                1 Reply Last reply Reply Quote 0
                • ssuess
                  ssuess last edited by

                  @rstoenescu if you could, that would be fantastic. I can’t tell you how much better the performance is with the ionic webview, it is night and day.

                  1 Reply Last reply Reply Quote 1
                  • ssuess
                    ssuess last edited by

                    @rstoenescu did this make it into 0.15 by any chance? I can’t find mention of it in the docs…

                    1 Reply Last reply Reply Quote 0
                    • ssuess
                      ssuess last edited by

                      ???

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        MagoSchmidt @ssuess last edited by

                        @ssuess Are you experimenting the “two tap problem” inside dialog and modals (buttons and other componentes need two taps to responde?)

                        I have tried the webview you talked about: https://github.com/ionic-team/cordova-plugin-ionic-webview

                        It is really fantastic, but the two tap problem remains…

                        Please take a look at this: https://github.com/quasarframework/quasar/issues/1711#issuecomment-372118483

                        1 Reply Last reply Reply Quote 0
                        • ssuess
                          ssuess last edited by

                          @MagoSchmidt I have yet to migrate my codebase to 0.15.x, so I could not say, but I have not noticed this problem in my earlier code (based on 0.14.x)

                          1 Reply Last reply Reply Quote 0
                          • rstoenescu
                            rstoenescu Admin last edited by

                            Two tap problem fixed in 0.15.9 - to be released in a few days.

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