Skip to main content
← Data, API & Backend
Data, API & Backend February 21, 2023 · 4 replies

[solved - Firebase Anonymous Required]🔥🚨 Expected Behavior? "ADMIN_ONLY_OPERATION" alert on- Firebase Phone Login in Bravo Vision for iOS (2023-02-21)

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

Solution: (Thank you, Pau! See their comments below.) When testing Firebase Phone Login on Bravo Vision, you must have Firebase Authentication configured so that Anonymous Login is enabled also. This will allow you to test Firebase Phone Login in Bravo Vision.

image.png

Original Question:

attachment

A silly meme for attention about an Admin error message.

While on Bravo Vision for iOS and testing Firebase Phone login, we are prompted with a "Phone login only works on the final app, this is a simulation (you can enter any code). Do you want to continue?" Of course, let's continue.

331959768_525932072998753_6743401505757294876_n.jpg

I continue to a code verification page.
I enter random text, and submit.

I see an alert/error of "Sorry. ADMIN_ONLY_OPERATION" when entering a fake verification code. (You can ignore my placeholder text of "Enter the code sent to ${email}")

Does this alert mean:

  1. I setup Firebase incorrectly (Perhaps this one, because this error is associated with other Google services)
  2. I setup Figma incorrectly
  3. I setup Bravo incorrectly (Debug event log doesn't show HTTP requests)
  4. I setup a combination of these incorrectly
  5. This is expected behavior during the simulation
  • If this is expected behavior****, what is the best practice for testing your app?
    • Example: During testing, set up a fake authentication flow in Figma?
  • If this is expected behavior****, what is the best practice for publishing your app? 
    • Example: Right before publish, change your prototype flow so it will work once published? (This seems scary - not being able to observe the flow until after published.)

4 replies

Pau Bravo team February 22, 2023

😆
Well, in Bravo defence this helpful message comes from Firebase.

Seems we missed something in the documentation, that to be able to make phone login to work in Bravo Vision, you need enable Anonymous login in Firebase, as is the login we use instead of phone login in Vision.

Phone login in Vision is not available due to a Firebase limitation.

And regarding being able to test phone login before publishing, it's recommended to test everything using Testflight before for the final tests before releasing the app, so no need to worry about that.

Hope it helps.

Adam February 22, 2023

That helps a TON!! Thanks! Will try enabling anonymous login today and see if that allows phone login in Vision for iOS to work!

Adam February 22, 2023

it occurs to me that I may not correctly understand what you’re saying. On the one hand the comment says

“phone login in vision is not available due to a Firebase limitation”

but on the other hand, it also says

“to be able to make phone login work in Bravo Vision, you need to enable anonymous login in Firebase”

I’m trying to sort out how both of these things are true.

Maybe it means :
1. Just enable anonymous login in the firebase settings, and the phone login flow will work in Bravo.
2. Do not attempt to test phone login inside of Bravo Vision. Instead, create a flow in Figma that uses anonymous login and also enable anonymous login in Firebase. Rely on anonymous phone login during vision testing. Later, use a build for TestFlight to test phone login.

(Sorry if I’m being dense. By being detailed, I’m trying to cut down on confusion for myself while also helping future Bravo customers if possible.)

Adam February 24, 2023

[update] It appears that #1 is true.

In other words, by enabling Anonymous Login in Firebase Settings, the phone login flow will work in Bravo Vision.

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord