I believe the iOS preview app may be dropping my HTTP Authorization headers, and I don’t know why.
My Setup:
I have connected appgyver with a Cloud Firestore backend.
I’m using the Firebase Auth REST API for Sign in which passes an idToken for authorization purposes.
Using the web app preview portal, my app successfully passes the received idToken back through the Authorization HTTP header which works with the simple Firestore read/write rules I have set up.
However, something fails in the iOS preview app. The data is not retrieved from the database using the iOS preview app.
My best guess is the react native iOS implementation isn’t sending the Authorization header during the HTTP call. This would cause the GET request from the iOS device to fail with a “permission denied.” I suspect this because when I relax the Firestore read/write security rules so they do not require authentication, the data is indeed retrieved by the iOS preview app.
Again, everything in the REST API works fine in the web preview, but the iOS preview app fails.
This issue may be similar to this one but I’m just not sure and I’m hoping for a simpler solution.
I have tried fiddling with leading and trailing slashes ‘/’ as suggested elsewhere.
One other solution may be ensuring the correct appgyver domain is in Firebase’s Authorized Domains. Does the iOS preview app use a different domain than appgyver.com or appgyverapp.com or platform.appgyver.com?
My app is 189362.