Last active
November 17, 2017 08:23
-
-
Save danbeo95/ede894f319be0f85cff42e2f12a59a22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { NavController } from 'ionic-angular'; | |
@Component({ | |
selector: 'page-home', | |
templateUrl: 'home.html' | |
}) | |
export class HomePage { | |
constructor(public navCtrl: NavController) { | |
} | |
logIn() { | |
(<any>window).FirebasePlugin.verifyPhoneNumber("+841687072421", 60,(credential)=> { | |
console.log(credential); | |
// ask user to input verificationCode: | |
}, function(error) { | |
console.error(error); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment