How to get RecaptchaVerifier for firebase auth in appery project (ionic)?

This is a code from firease docs for authentication with phone:

window.recaptchaVerifier = new firebase.auth.RecaptchaVerifier('sign-in-button', {
'size': 'invisible',
'callback': function(response) {
// reCAPTCHA solved, allow signInWithPhoneNumber.
var phoneNumber = getPhoneNumberFromUserInput();
var appVerifier = window.recaptchaVerifier;
firebase.auth().signInWithPhoneNumber(phoneNumber, appVerifier)
.then(function (confirmationResult) {
// SMS sent. Prompt user to type the code from the message, then sign the
// user in with confirmationResult.confirm(code).
window.confirmationResult = confirmationResult;
}).catch(function (error) {
// Error; SMS not sent
// ...

In Web all right, but in appery, in angular + ionic...
May be, we need create some object, such as InAppBrowser or http and load in this object recaptchaVerifier? May be it`s possile load it in html component?

My question: How can I load and get appVerifier in appery project?

P.S.: I am new in web mobile developing...
Thank you!
1 person has
this question