Skip to content

Releases: kyawhtut-cu/FirebasePhoneAuth

Support for full screen and show cursor visible in otp view

08 Nov 07:46
Compare
Choose a tag to compare
1.1.2

Support for full screen and show cursor visible in otp view

Custom UI with phone auth and auto request otp code.

16 Sep 17:24
Compare
Choose a tag to compare

Custom UI With Phone Auth

/* *
*
* create phone auth custom object instance
*
* */
private val phoneAuthCustom = PhoneAuthCustom.Builder(activity or fragment).build()

/* *
*
* add listener
*
* */
phoneAuthCustom.listener = object: PhoneAuthCallback() {
    override fun onCodeSent(verificationId: String) {
        //todo: This method will execute after code sent to phone number
    }

    override fun onVerificationCompleted() {
        //todo: This method will execute after auto verify without otp code send.
    }

    override fun onVerificationFailed(e: Exception) {
        //todo: This method will execute after verification fail
    }

    override fun onVerificationSuccessful(phone: Phone) {
        //todo: This method will excute after verification pass with user input otp
    }
}


/* *
*
* to send code (09973419006) you should need to add country code
*
* */
phoneAuthCustom.sendCode("+959973419006")

/* *
*
* after code send method execute, you want to resend code you should call this method. 
* You should wait 1 min or 30 second because of firebase will block phone number unusual request.
*
* */
phoneAuthCustom.resendCode()

/* *
*
* to verify user input otp with phone number
*
* */
phoneAuthCustom.verifyOtp(user_input_otp_code)

Fragment bug fixed and Stable.

16 Sep 08:01
Compare
Choose a tag to compare
1.1

Fragment bug fixed

Phone Auth Bug fixed for Fragment

16 Sep 07:42
Compare
Choose a tag to compare
1.0.7

Phone Auth bug fixed for fragment

Phone input number changed.

16 Sep 07:21
Compare
Choose a tag to compare
1.0.6

Version code changed

1.0.4

16 Sep 07:00
Compare
Choose a tag to compare

Added for static function to check login.

1.0.3

16 Sep 06:53
Compare
Choose a tag to compare

Phone auth added for Fragment.

Phone input text style changed.

16 Sep 06:48
Compare
Choose a tag to compare

Phone number input style changed.

version 1.0.1

14 Sep 09:17
Compare
Choose a tag to compare

Login header image changed.

Phone authentication using firebase auth ui and customized ui.

14 Sep 09:03
Compare
Choose a tag to compare

Application အတွက် ဖုန်းနံပါတ် Authentication အတွက်ကို အလွယ်တကူအသုံးပြုရန်အတွက်ဖြစ်ပါသည်။

Phone authentication အတွက်ကို Firebase ၏ Authentication ကိုအသုံးပြုထားပါသည်။ Facebook account သည် မကြာမှီ Shut down ဖြစ်တော့မှာဖြစ်သည့်အတွက် Phone authentication ကို လွယ်လွယ်ကူကူ Implementation သုံးလို့ရအောင်အတွက် လုပ်ထားဖြစ်ပါသည်။

Lib ထဲတွင် Firebase ၏ Default Auth UI နှင့်သုံးလို့ရသလို၊ Lib မှ Support ပေးထားသည့် UI နှင့်လဲသုံးလို့ရပါသည်။ ယခု Version တွင် မိမိ UI နှင့် Firebase authentication ကို လွယ်လွယ်ကူကူ တွဲသုံးလို့ရအောင် Support ပေးထားခြင်းမရှိသေးပါ။

နောက်လာမည့် Version တွင်တော့ Support ပေးသွားပါမည်။ Sample Usage ကို Read Me တွင်ဖတ်ပြီးစမ်းသပ်နိုင်ပါသည်။