AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Send sms message android studio firebase10/18/2023 Steps Completed: 1) I added GSON file to app directory 2) I added test phone number in the firebase console 3) I added SHA1 code to fire base 4) I added SMS permission in the Android manifest file. I am not sure whether I am doing correctly sendVerificationcode method correctly or not.Ģ) I added test phone number in the firebase consoleĤ) I added SMS permission in the Android manifest file.ĥ) I enabled firebase authentication in Android studioĦ) I tried different phone numbers too VerifyPhoneActivity. I am not sure whether I am doing correctly sendVerificationcode method correctly or not. I am not sure why I am not getting text message. I am not getting OTP message from Fire base but if I enter the code manually then it works. Log.e(TAG, phoneUtil.I am new to Android development. MPhoneToVerify = phoneUtil.format(numberProto, 164) //am using libphoneNumber from google. MPhoneAuthProvider = PhoneAuthProvider.getInstance() View view = inflater.inflate(R.agment_verify_phone, container, false) Relevant Code: //in a View onCreateView(LayoutInflater inflater, ViewGroup container, The previous chapter created an example Firebase Cloud Messaging client app and outlined the steps involved in obtaining the registration token for an app. I was expecting to receive and SMS with the verification code to complete the phone verification. Nothing to show from the logcat Expected Results: The code executes with no error, but the sms is never sent to the device even though the codeSent callback gets fired.
0 Comments
Read More
Leave a Reply. |