Created
September 12, 2019 00:27
-
-
Save Younes-Charfaoui/d9fcdc60f67948d13091f8290dc007b4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class PhoneVerificationActivity : AppCompatActivity(), PhoneCallbacks.PhoneCallbacksListener { | |
| private lateinit var auth: FirebaseAuth | |
| private var storedVerificationId: String? = null | |
| private lateinit var resendToken: PhoneAuthProvider.ForceResendingToken | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| .... | |
| auth = FirebaseAuth.getInstance() | |
| auth.setLanguageCode(Locale.getDefault().language) | |
| val phoneCallbacks = PhoneCallbacks(this) | |
| ... | |
| } | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment