Giter Club home page Giter Club logo

Comments (2)

sgrebnov avatar sgrebnov commented on June 15, 2024

I think the reason is that you call loginSilently before plugin has been initialized/loaded. You could use deviceready event to ensure plugins are loaded:
https://cordova.apache.org/docs/en/6.x/cordova/events/events.deviceready.html

Or bootstrap your angular app after this event is fired: http://stackoverflow.com/a/21556421

from azure-activedirectory-library-for-cordova.

RobDaPraia avatar RobDaPraia commented on June 15, 2024

Thanks a lot! Didn't realize this could be the issue,was searching for solution in the wrong direction. With the links you gave I was able to solve it. So happy it works now:)

<body>
    <ion-nav-view></ion-nav-view>

    <!-- manually bootstrap AngularJS with Cordova/PhoneGap/Ionic,
         to be sure that lpugins are ready
         Note: removed the ng-app from the html body
         See: http://stackoverflow.com/questions/21556090/cordova-angularjs-device-ready/21556421#21556421 -->
    <script>
        window.ionic.Platform.ready(function () {
            angular.bootstrap(document, ['appAAD']);
        });
    </script>
</body>

from azure-activedirectory-library-for-cordova.

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.