Facebook login works on the computer in the browser but the in ionic view in my phone pop-up does not open

loginFacebook() {
if (this.platform.is(‘cordova’)) {
return this.facebook.login([‘email’, ‘public_profile’]).then(res => {
const facebookCredential = firebase.auth.FacebookAuthProvider.credential(res.authResponse.accessToken);
return firebase.auth().signInWithCredential(facebookCredential);
else {
return this.afAuth.auth
.signInWithPopup(new firebase.auth.FacebookAuthProvider())
.then(res => console.log(res));

Is whatever plugin you are using (you didn’t tell us) supported by Ionic View?

I am using facebook login with firebase ı am new in ionic . I see facebook dont supported from ıonic view .Well How can I test this code?

You run the app on a device or emulator:

Thank you but ı have a another problem now the output:

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Error: /Users/lemonsoft/Desktop/ksk/platforms/android/gradlew: Command failed with exit code 1 Error output:
    Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
    java.lang.RuntimeException: You have not accepted the license agreements of the following SDK components:
    [Android SDK Platform 25].
    Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.

Do what it tells you - start Android Studio, go into the SDK Manager and make sure to install the current versions and agree to all the agreements.