Marcos Alves Well-Known Member Licensed User Longtime User Jun 10, 2021 #1 Hello all, in a previous post (https://www.b4x.com/android/forum/threads/firebase-facebook-authentication.130898/#post-828869) I noticed that the error messages using Firebase Authentication for Facebook aren't triggering an event in B4i, which was fixed by @Erel with a Facebook Authentication Library Update/Patch. Using Firebase Apple Authentication (described here: https://www.b4x.com/android/forum/threads/sign-in-with-apple-and-firebase.116280/) , I noticed that there is almost the same situation here: if an authentication process is cancelled using Apple + Firebase Authentication (described here: https://www.b4x.com/android/forum/threads/sign-in-with-apple-and-firebase.116280/), when the process is cancelled or there is an error in the flow (ex: Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1001 "(null)" ), B4i doesn't receive any event. If the app is waiting for an answer there is no way to notify the user or to continue the app flow reacting to the problem (showing an alert box for example). It looks that it's a similar situation which needs an update in the class AppleAuthButton.bas correct? Thanks!
Hello all, in a previous post (https://www.b4x.com/android/forum/threads/firebase-facebook-authentication.130898/#post-828869) I noticed that the error messages using Firebase Authentication for Facebook aren't triggering an event in B4i, which was fixed by @Erel with a Facebook Authentication Library Update/Patch. Using Firebase Apple Authentication (described here: https://www.b4x.com/android/forum/threads/sign-in-with-apple-and-firebase.116280/) , I noticed that there is almost the same situation here: if an authentication process is cancelled using Apple + Firebase Authentication (described here: https://www.b4x.com/android/forum/threads/sign-in-with-apple-and-firebase.116280/), when the process is cancelled or there is an error in the flow (ex: Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1001 "(null)" ), B4i doesn't receive any event. If the app is waiting for an answer there is no way to notify the user or to continue the app flow reacting to the problem (showing an alert box for example). It looks that it's a similar situation which needs an update in the class AppleAuthButton.bas correct? Thanks!
Erel B4X founder Staff member Licensed User Longtime User Jun 10, 2021 #2 Try the attached class (v1.01). It will raise the Auth_Error in the class itself. Attachments AppleAuthButton.bas AppleAuthButton.bas 7.2 KB · Views: 645 Upvote 0
Marcos Alves Well-Known Member Licensed User Longtime User Jun 10, 2021 #3 Erel said: Try the attached class (v1.01). It will raise the Auth_Error in the class itself. Click to expand... Thanks @Erel . I'm testing and posting the results here. Upvote 0
Erel said: Try the attached class (v1.01). It will raise the Auth_Error in the class itself. Click to expand... Thanks @Erel . I'm testing and posting the results here.
Marcos Alves Well-Known Member Licensed User Longtime User Jun 10, 2021 #4 Erel said: Try the attached class (v1.01). It will raise the Auth_Error in the class itself. Click to expand... Worked perfectly as always ! I think that could be interesting to add a note and update in the original library thread no ? (https://www.b4x.com/android/forum/threads/sign-in-with-apple-and-firebase.116280/) Thanks @Erel .? Upvote 0
Erel said: Try the attached class (v1.01). It will raise the Auth_Error in the class itself. Click to expand... Worked perfectly as always ! I think that could be interesting to add a note and update in the original library thread no ? (https://www.b4x.com/android/forum/threads/sign-in-with-apple-and-firebase.116280/) Thanks @Erel .?