Coder Social home page Coder Social logo

Comments (7)

vtjon avatar vtjon commented on June 10, 2024 1

@triniwiz I think I might have figured out what is going on though I'm not sure exactly why. To recap:

  • I use an OAuth flow that ultimately redirects back to a custom scheme that is supposed to be captured by an intent setup on my app
  • During the OAuth flow, if I have to log into the provider (i.e., Facebook), the redirect works as it did in version 2.0.0.
  • If I am already logged in, the redirects (302) happen without any user interaction. I can see in logcat that the intent is triggered
  • If I restart my app, it will immediately pick up the intent

I think ultimately, my app is being sent to the background. Upon research, I ran across this:
https://stackoverflow.com/a/38494130/62686

I looked at your fancy webview repo and it doesn't appear to call the warmup function. Is this something straightforward to add?

from nativescript-advanced-webview.

triniwiz avatar triniwiz commented on June 10, 2024

@vtjon it opens a webview if if device does not have google chrome installed

from nativescript-advanced-webview.

vtjon avatar vtjon commented on June 10, 2024

I think I got lazy with my wording. I meant Chrome Custom Tabs for the OAuth login flow. It works again when I go back to version 2.0.0. Chrome is installed. I will say, it does look different though like it defaulted to a webview for some reason (i.e., no URL bar or close X). I just tried to open https://www.google.com and it opens in the Chrome version. It must be switching over to a webview during the redirect cycle.

from nativescript-advanced-webview.

vtjon avatar vtjon commented on June 10, 2024

It seems like it worked this time. Maybe I had the old AAR file or something. I will reopen if it happens.

from nativescript-advanced-webview.

championswimmer avatar championswimmer commented on June 10, 2024

I had this similar issue. I set up a fresh webview plugin myself that uses Chrome Custom Tabs. You can try this https://www.npmjs.com/package/nativescript-awesome-webview till the issue is not fixed on this repo

from nativescript-advanced-webview.

triniwiz avatar triniwiz commented on June 10, 2024

@vtjon it should it’s set to true in the init

from nativescript-advanced-webview.

jdnichollsc avatar jdnichollsc commented on June 10, 2024

@vtjon can you try this other option? https://github.com/proyecto26/nativescript-inappbrowser
Let me know πŸ‘

from nativescript-advanced-webview.

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.