You cannot install app with same package name, signed with different cert. If the package and cert match, iOS will overwrite app with the new one.
On Android (B4a) you can use different Firebase JSONs, by changing file name in manifest. I still don't have any app on iOS with Firebase implemented, so I don't know how you can use two different JSON in B4i.