#11 Android Login/Signup with MVVM - Handling API Errors

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ม.ค. 2025

ความคิดเห็น • 42

  • @AmodKumar-fp9hi
    @AmodKumar-fp9hi 4 ปีที่แล้ว +1

    Great bro
    I am waiting from long time for this topic video

  • @SimplifiedCoding
    @SimplifiedCoding  4 ปีที่แล้ว

    If you want to use My API, then here are the details:
    Auth URL: simplifiedcoding.tech/mywebapp/public/api/auth/login or /signup
    User URL: simplifiedcoding.tech/mywebapp/public/api/user
    Here is a user that you can use for Login if you do not want to make the SignUp part on your own.
    email: probelalkhan1@gmail.com
    password: 12345678
    Thank You

  • @ankitamoundekar2221
    @ankitamoundekar2221 3 ปีที่แล้ว +1

    is this signup API working or not?
    because when I am testing this API on postman it's not giving me any response

  • @swetasuman98
    @swetasuman98 4 ปีที่แล้ว +1

    It's really very much helpful.

  • @NimaAzh
    @NimaAzh 3 ปีที่แล้ว

    excellent job from belal khan ! some topics like this this are always need more attention. these generic functions that are called in whole app pages are hard for beginners. include many things like generic functions , sealed class , ... thanks a lot .if you know anything about designing or customizing view class tell us. it is a topic that is not found a lot.

  • @timothyademola8892
    @timothyademola8892 4 ปีที่แล้ว +1

    Great video, thanks for this, can I get an explanation on refresh token handling using authenticator in this case

    • @SimplifiedCoding
      @SimplifiedCoding  4 ปีที่แล้ว

      I have updated this project with Refresh Token and authenticator
      Check here: th-cam.com/video/QfnmLx68jcI/w-d-xo.html
      Soon I will create a step by step explanation video as well.

  • @surflaweb
    @surflaweb 3 ปีที่แล้ว

    Hi bro! I updated my Api Rest. Before I was sendig a server message:
    if(!user) return res.send({message: "wrong email"})
    now I updated it responding wiht a 401 status code
    if(!user) return res.status(401).send('wrong email')
    I did it using node.js and express..
    Ok bro I update and the App works but how we can get the server message and show it instead of do it:
    requireView().snackbar("You've entered incorrect email or password") ?
    I want to show the server message instead of the snackbar message.. ¿Can you update it?
    thanks so much.

  • @ShakilAhmedShaj
    @ShakilAhmedShaj 4 ปีที่แล้ว +1

    great video as always, thanks a lot ❤️❤️

  • @krishnamandava9919
    @krishnamandava9919 4 ปีที่แล้ว +1

    After fetching and displaying user information when orientation changes api request was sending again to fetch tha data. Is there is any solution other than room to fix this problem

    • @SimplifiedCoding
      @SimplifiedCoding  4 ปีที่แล้ว

      It should not happen as we are already using ViewModel. I will check and tell you.

    • @krishnamandava9919
      @krishnamandava9919 4 ปีที่แล้ว

      @@SimplifiedCoding Okay thanks. I'm waiting for the answer

  • @rajusah3710
    @rajusah3710 4 ปีที่แล้ว +3

    Please add DI in this project sir ASAP

  • @bhaskarrajaryal6678
    @bhaskarrajaryal6678 3 ปีที่แล้ว +1

    Lovely video.. Can you please let me know how I can call handleApiError from Activity since its using Fragment here?

    • @NimaAzh
      @NimaAzh 3 ปีที่แล้ว

      call it directly. it is in util file but it is not member of any class. this function is written in file.

  • @TheKamble
    @TheKamble 4 ปีที่แล้ว +1

    Is it possible to get some episodes showing fetching lists of data and uploading to the list also? That would go a long way sir. As always, we love you

    • @SimplifiedCoding
      @SimplifiedCoding  4 ปีที่แล้ว

      Already covered fetching list so many times.

    • @TheKamble
      @TheKamble 4 ปีที่แล้ว +1

      @@SimplifiedCoding oh, ok so there's no changes to how you did it in the mvvm tutorial?

    • @SimplifiedCoding
      @SimplifiedCoding  4 ปีที่แล้ว +1

      No just hit the api in repository call that function in view model and observe result in fragment.

    • @TheKamble
      @TheKamble 4 ปีที่แล้ว

      @@SimplifiedCoding Done and done. Thank you so much sir.

  • @d_3_a_d_p_o_o_l
    @d_3_a_d_p_o_o_l 2 ปีที่แล้ว

    Error model:
    {
    "error": {
    "message": "Username is already taken."
    "code": 422
    }
    }
    I want to show api response.errorBody(). I have written sign up api and it returns errors like in error model message property could be any error like "email is already taken", "email is invalid", etc . How to parse api response error body with custom data class, if response is not successful. I'm using retrofit for api calls. Please help sir.

  • @ilhamaliyudin4779
    @ilhamaliyudin4779 4 ปีที่แล้ว +1

    hallo masterrr, how to handle SocketTimeOut when user hasnt internet connection??

  • @Nikhil-bo5zt
    @Nikhil-bo5zt 2 ปีที่แล้ว

    Request to you sir .can you please upload a paging fetching in recycler view using this same project setup..please reply...

  • @mohammadnasrullah6681
    @mohammadnasrullah6681 4 ปีที่แล้ว +1

    hello bhai after login my app not changing activity i followed your steps and checked your git too.
    help me please. Thanks

  • @05Sambist
    @05Sambist 4 ปีที่แล้ว

    Do you show how to register a new user?

  • @mohoshinali6607
    @mohoshinali6607 4 ปีที่แล้ว +3

    First view 😍

  • @Lukmanhakim-hn2bo
    @Lukmanhakim-hn2bo 4 ปีที่แล้ว +1

    Nice video sir, please make some videos that is talking about how to implement clean architecture to our project. Thanks ;)

  • @_sharmaji.dev_
    @_sharmaji.dev_ 4 ปีที่แล้ว +1

    ✨✨

  • @wavedass4655
    @wavedass4655 4 ปีที่แล้ว

    camerax tutorial for java

  • @farheenjaved7133
    @farheenjaved7133 4 ปีที่แล้ว

    Hello ham Fahad hai

  • @pyaesonehan19
    @pyaesonehan19 8 หลายเดือนก่อน