GithubHelp home page GithubHelp logo

Google-Login with capacitor-oauth2/Plugins.OAuth2Client.authenticate () does not work on Android device about capacitor-oauth2 HOT 5 CLOSED

moberwasserlechner avatar moberwasserlechner commented on May 25, 2024
Google-Login with capacitor-oauth2/Plugins.OAuth2Client.authenticate () does not work on Android device

from capacitor-oauth2.

Comments (5)

blazery avatar blazery commented on May 25, 2024 1

I don't know to much about this plugin, i just started using it a few days ago so this might not be useful.

Did you add the plugin to your android MainActivity?
When I didn't add it, it indeed did a web-like redirect to the users chrome browser instead of opening the auth page in the app itself.

My code example:

import com.byteowls.capacitor.oauth2.OAuth2ClientPlugin;

public class MainActivity extends BridgeActivity {
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    ArrayList<Class<? extends Plugin>> additionalPlugins = new ArrayList<>();

    additionalPlugins.add(OAuth2ClientPlugin.class);

    // Initializes the Bridge
    this.init(savedInstanceState, additionalPlugins);
  }
}

from capacitor-oauth2.

moberwasserlechner avatar moberwasserlechner commented on May 25, 2024 1

Hi @ikalebhagyashri, please open a new issues as this one is 2 years old and closed!

BR, Michael

from capacitor-oauth2.

moberwasserlechner avatar moberwasserlechner commented on May 25, 2024

@andre-scheffer could you plz check if @blazery answered your question.

from capacitor-oauth2.

moberwasserlechner avatar moberwasserlechner commented on May 25, 2024

I close this as when following the docs and using the tips in this thread it works for most users.

If you disagree I'm happy to reopen, but I need a detailed feedback then.

from capacitor-oauth2.

ikalebhagyashri avatar ikalebhagyashri commented on May 25, 2024

Hi @moberwasserlechner , I am using @byteowls/[email protected] in ionic app , Its working in other devices but while logging into android 7.1.1 , It redirects to google search page and not allowing user to log in into application.

from capacitor-oauth2.

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.