I have Sql database, I want to connect from app to it. I know that storing connection strings is bad practice so I need other method to pass this.
I read about Rest api's, is this only secure way? If it is, can someone help me with creating this?
You should try database encryption.
But this topic follows to Sqlite, not SQL Server or MySql or other db system.
For now I think the best is to use web api.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies