Getting started with Google Sign-In on Apple platforms

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

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

  • @ManochonARG
    @ManochonARG ปีที่แล้ว +6

    Hope you never stop this series! I'm very grateful! you are saving me a lot of time.

  • @yippiegolf
    @yippiegolf 9 หลายเดือนก่อน

    This was amazing!

  • @TimelessKronos7
    @TimelessKronos7 11 หลายเดือนก่อน

    This is awesome! Thank you so much Peter!

  • @666MrGamer
    @666MrGamer ปีที่แล้ว +5

    The code you provided in the video cannot work. The 'Google' button you implemented in the UI has action 'signInWithGoogle' however you made that async later in the video and the code won't compile. Wrapping the action inside a Task is also a bad idea since you have UI code (accessing the root view controller) on a background thread. One way to fix this is to wrap the AuthViewModel in a @MainActor. This solves the issue but keep in mind this will block the UI once the code is waiting for the result from Firebase (since it's await).

    • @danielwatson6529
      @danielwatson6529 ปีที่แล้ว

      did u come up with a solution? or did u implement another way

    • @666MrGamer
      @666MrGamer ปีที่แล้ว +2

      @@danielwatson6529 Yeah my previous statement was actually wrong. It's perfectly good enough to just wrap the viewmodel class in a '@MainActor' and everything should be good to go. This property wrapper makes sure all UI updates are done on the main thread.

  • @Mahadev-x7u
    @Mahadev-x7u ปีที่แล้ว +3

    Thank you....

  • @alanwalker1067
    @alanwalker1067 ปีที่แล้ว

    Can you demonstrate how to log into MacOS using Google credentials?

  • @andrewacheampong
    @andrewacheampong ปีที่แล้ว

    Thank you.

  • @sultanammar
    @sultanammar ปีที่แล้ว

    Nice video

  • @hk20092009able
    @hk20092009able 4 หลายเดือนก่อน

    very bad old better then now

  • @RahulMahajan-ck5fq
    @RahulMahajan-ck5fq หลายเดือนก่อน

    ‪@PeterFriese , please help with macOS demo as well. Thanks :)