Firebase distribution for iOS - firebase

We are develop an iOS app using react-native. And every time there is an update from developer, developer need to build and install on QA phone for testing.
Now, I am trying to use fastlane and firebase app distribution, to distribute new app for QA.
When I create new release, QA got an email notification about that, and they can check it on firebase app distribution. But there is no button for download and install, only message like this.
Device registered!
The developer now needs to update their app to run on your device. You'll get an email when the app is ready to test.
How to make it available to download?

Finally,
For release iOS app to firebase app distribution, you need to generate ad-hoc.
First, u need to create a profiles ad hoc key, u can create it on apple developer or use fastlane to generate it. Then save it inside your project.
Second, set export method inside build app to be ad-hoc.
Third, use get_provisioning_profile to get your profile ad hoc key.

I believe this is very likely because your version is already the same (I think it happened to me recently). Try updating your minor version of the app. (If you are not able to do this for some reason, you can just delete existing build and upload a new one).

Related

Problem deploying project on Firebase with Stripe

I'm trying to deploy my app that has the stripe payment extension installed. Everything works fine on the emulator (I am not using stripe for the moment) but when I try to deploy everything looks ok except deploy fails with this message:
Error: firestore-stripe-payments: Found
'projects/1234/secrets/ext-firestore-stripe-payments-STRIPE_API_KEY/versions/1'
for secret param STRIPE_API_KEY, but this instance was previously
using a different secret
projects/1234/secrets/firestore-stripe-payments-STRIPE_API_KEY.
Changing secrets is not supported. If you want to change the value of
this secret, use a new version of
projects/1234/secrets/firestore-stripe-payments-STRIPE_API_KEY.You
can create a new version at
https://console.cloud.google.com/security/secret-manager?project=1234
So I go to the link without knowing how my emulator API key works compared to the production one ( I didn't activated the Stripe account ). Here I find two keys, one is firestore-stripe-payments-STRIPE_API_KEY and the other one is ext-firestore-stripe-payments-STRIPE_API_KEY. When I click to make a new version it asks for a file with a secret.
So my main problem is: do I need to change version of both two secrets or only one? Second problem is where do I find those keys and does the test API key work on deployment?
Am I missing something here, am I on the right path?

Firebase Console delete part of Project

I am using firebase with my android and iOS app.
My android app got removed from play store once (had to be 18+, it was 16+, don't know why they deleted it, its a joke app and no nudity or brutality is shown :D). Now many users have the old version which will receive no updates anymore. We managed to get many users to change to the new app (uploaded with different package name, everything else is the same)
I want to remove the old version from firebase. It uses old code and will not receive updates.
QUESTION
If I remove the old app from the project, will users still be able to connect to my firebase?
My hope is that they won't be able and will remove the old app (and maybe look up the new one as a reaction)
Will it make anything unexpected? I did not find anything about it despite that I lose the analytics.
As I cannot update the old app there is probably no other way to remove it.
To connect to the Realtime Database from an Android or iOS app, all the app needs to know if the URL of that Realtime Database. So no matter if there's an app registration in the Firebase project or not, if the code has the right URL it can connect.

Add testers via Firebase Crashlytics platform

Before now in Fabric Beta
I could add new testers via Add Testers button:
How could I add new testers via Firebase platform?
firebaser here
Fabric/Crashlytics Beta is not yet available under the Firebase umbrella. We're working on it, and it will be available later this year under the name App Distribution.
I recommend taking a look at the Fabric roadmap, which also contains a link to request early access to Firebase App Distribution.
Just in case anyone finds this question. When you go to Firebase console:
Select the project you want to manage
Go to App Distribution on the menu on the left side. (the main view should display App Distribution title)
Select 'Testers & Groups'

React Native Notification About New App Release (App Store and Play Store)

We are about to release our new React Native app to Apple App Store and Google Play Store.
We know we'll be updating our app version every few weeks. We'd like to add an ability to update our users that their current version is deprecated, and help them navigate to the app/play stores to download the new release.
What is the best practice for this task?
Notice we're using Firebase for push notification so we're able to leverage both Firebase Cloud Messaging and In-App Messaging
I would strongly recommend using Firebase remote config. Use that to configure the minimum required app version, and have your app check it on start-up. If the current version is less than the required version, ask the user to update on Play using a Play URL link/intent.
Please please please don't do what some developers do and scrape the play store for the current version.

How to delete site via CLI

Is there a way to delete an app via Firebase CLI?
Our CI creates a temporary Firebase app for a feature branch (based on the CI build number), and then runs tests on it. At the end it needs to delete the app. I'm not entirely sure how this is done. firebase disable:hosting just disables hosting and does not delete the app. This is similar to how we would have used Heroku review apps or Heroku forked apps. A similar CI workflow can also be achieved on Google App engine via versions.
Any pointers would be much appreciated.
The correct command is firebase hosting:disable, which make your site offline. You can not remove your project, instead you can overwrite it by creating a new one with firebase init.
More info here https://firebase.google.com/docs/cli/.
There is currently no public API to delete a Firebase backend.
The recommended practice is to use the same database for testing and (if needed) put each run in its own node under the root. So instead of creating/deleting a new database, you're just create/deleting a node in a single database.
Using the command firebase use <alias> --unaliasand then delete the project from the console https://console.firebase.google.com/
Check before the list of commands with the command -h

Resources