Templates Plugins Courses

Sign in with Apple - First Name & Last Name empty

Hi,
I have purchased and implemented the “Sign In With Apple” plugin for my app and after a few hours to make it work, I finally managed to sign up using the plugin’s button.
However, for some reasons, I cannot, for the sake of me, save First Name and Last Name in my database for the current user despite all my efforts.
I can see the entry in my database (the user is created and the email saved) but not the other pieces of information.
Here is my Workflow after logging in the user:


And here is more specifically the action under “Make changes to user”:
image
And here is a screenshot of the debugger on the login page:

As you can see, the variables “firstname” and “lastname” are empty.
I had a look at the forum to see if I could find a solution but I did not come accross clear guidelines or solutions to fix that problem.

What am I doing wrong? Could you please advise?

Thanks for your help!

Carlos

Hello @mon.petit.site.web,
Thank you for your message and for using the Sign-in with Apple Plugin.

Due to Apple’s policy, you’ll only be able to retrieve the First/Last Name the first time you access the app. Once you’ve successfully signed in with Apple, you’ll have access to the First/Last Name, and you can store this information in your User’s Database.

If you need to see the First/Last Name again for a second time, you should visit your personal Apple Dashboard and remove the app from your list.

In essence, remember to save the First/Last Name when users initially access your app and choose the Apple Sign-in option.

I hope you find this information helpful. If you need more assistance with our products, please feel free to reach out.

Best regards,

Thanks for your reply!
I understand now. So, for instance, if I initially test the connectivity with Apple and only then I decide to set up the workflows to save the First Name and Last Name, I won’t be able to retrieve them due to Apple’s policy.
“The first time you access the app” litteraly means the first time for Apple, not for the Bubble App. So deleting the account in Bubble won’t work. You’ll have to go to your Apple dashboard and remove the app.

It now makes sense when explained this way, but it would be beneficial to have a more detailed explanation of this in the guidelines.

Something that states what I mentioned above about first time connection + something to explain that “if for some reasons, you first test the connectivity and then work on the workflows, please make sure to go to your iPhone settings and remove the app from the list (Settings > tap on your name > Passwords and Security > Apps Using Your Apple ID > remove the app from the list) every time you’ll want to re-test your workflows.” for example.

Just saying :wink:

Anyway, thanks for your help!

Carlos

1 Like

Hey @mon.petit.site.web,
Thank you for your reply, I’m glad that now everything is working.

Thank you for your suggestion, we will add this Tip to the plugin documentation.

In case you will have other plugin-related questions, please let me know.
Regards,