Git Product home page Git Product logo

Comments (9)

RaphaelJenni avatar RaphaelJenni commented on June 14, 2024

Hey
Sorry, how can I help you with that? I'm not using ionic, so I don't know how it works exactly. You have to eplaxin it more specific.

from firebaseui-angular.

codercatdev avatar codercatdev commented on June 14, 2024

@RaphaelJenni can I give you access to my private repo to try it out?

from firebaseui-angular.

RaphaelJenni avatar RaphaelJenni commented on June 14, 2024

@Ajonp I can give it a try, but I as I said, I haven't worked with ionic yet. So I don't know of how much help I am.

from firebaseui-angular.

codercatdev avatar codercatdev commented on June 14, 2024

@RaphaelJenni I think what is really needed is the success callbacks. https://github.com/firebase/firebaseui-web#available-callbacks

Then we would be good.

from firebaseui-angular.

RaphaelJenni avatar RaphaelJenni commented on June 14, 2024

Well I get that, but why don't you specify the redirect url or do it with the auth observer?

from firebaseui-angular.

codercatdev avatar codercatdev commented on June 14, 2024

Total user error, my fault!

from firebaseui-angular.

codercatdev avatar codercatdev commented on June 14, 2024

@RaphaelJenni I am sorry to hit you up on this issue again, but this works great in a browser and fails to forward on mobile. It won't trigger back to the auth subscriber.

app.component.ts

      this.afAuth.authState.subscribe(user => {
        if (user && user.uid) {
          //Update the details for the user
          this.userService.updateUser(user);
          this.initPushNotification(user.uid);
          //This should only route if a deeplink is not routing
          if (this.nav.first() == null || this.nav.first().id == "welcome") {
            this.nav.setRoot('MyStuffPage');
          }
        } else if (this.nav.getActive() && this.nav.getActive().name == "WelcomePage") {
          console.log("already on welcomepage");
        }
        else {
          console.log('MyApp->WelcomePage');
          this.nav.setRoot('WelcomePage');
        }
      });

If I force close and reopen the app it then proceeds as expected.

from firebaseui-angular.

RaphaelJenni avatar RaphaelJenni commented on June 14, 2024

Sorry, I really don't know how to help with this problem, as I don't use ionic.
Is there an error thrown?

from firebaseui-angular.

RaphaelJenni avatar RaphaelJenni commented on June 14, 2024

Close it because of inactivity.

from firebaseui-angular.

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.