Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding Firebase Admin SDK to Swift

I am trying to add a Firebase Admin SDK to my Swift based application. But the options that are there only have Node, Java, and Python.

Would I have to convert to Swift from one of these other languages? Correct me if I am going in the wrong direction, I am still pretty inexperienced. Thank you!

like image 958
Park Avatar asked Oct 19 '25 19:10

Park


2 Answers

Using the Firebase Admin SDK in the client is not supported, nor would you want it to be. Since Admin gives unrestricted access to the entire database, you would be putting your data at risk. A user could potentially find a way to read and write anything in the database, and even delete all of your data. That being said, what were you planning on doing with the Admin SDK? Perhaps I can steer you toward a different strategy.

like image 186
Jen Person Avatar answered Oct 21 '25 08:10

Jen Person


There is an implementation of Firebase Admin for Swift. Please check out this GitHub repository I created, https://github.com/1amageek/FirebaseAdmin. It's a Swift implementation of the Firebase Admin SDK and might be what you're looking for. Give it a try and see if it meets the requirements of your project!

like image 23
1amageek Avatar answered Oct 21 '25 10:10

1amageek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!