Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – How to set SSL pinning using retrofit for Firebase Realtime Database Url?

Posted on November 11, 2022 By

Solution 1 :

I think to use Firebase Database might be a little overkill, considering that you don’t want to use Database. Have you considered to use Remote Config? Remote Config is exactly suitable for your use case, also it’s a great way to gate your new features, A/B testing, etc. But unfortunately you would still need to google-service.json to your app, honestly don’t think you can avoid it.

Let me know if you found a way to avoid adding google-service.json to the app and have a secure access to it.

Problem :

I have Firebase Database link

this link as example
https://my-tempdb-rtdb.asia-southeast1.firebasedatabase.app/db.json

In my android app I need some static parameters which are change only once in month so I did use firebase and getting response as json. I want to use as json not want to implement database library for fetch data cause this use in multiple apps so don’t want to add google-service.json file for that so I did fetch response in json format.

{
    "wert": true,
    "kert": 1
}

I’m using this url as GET request in retrofit.
In firebase write rules are set as false. So no one can write but me.

So My question is I want to pining to this url so no one can missuses this url with man in middle attack. How to do this?

Comments

Comment posted by Android Dev

I know about this. That’s what I want to avoid . But so back to my question cab I do pining with db url?

Comment posted by Ihor Bykov

May I ask why do you want to avoid it? Are you planning to use Crashlytics, Analytics, PerfMonitoring all these can come for free with Firebase

READ  [FIXED] android - How to save the state of a toggle button after restarting app in Jetpack Compose?
Powered by Inline Related Posts

Comment posted by Ihor Bykov

Also FCM if you app is planning to receive push notifications

Comment posted by Android Dev

No sir We are not going to live our apk on playstore not going to use Any FCM service till near future. We can’t afford new server and paid for that so we don’t want to burden bill of someone just get url and missuse. But If not find any solution then we have to purchase server or use FCM remoteconfig.

Comment posted by Android Dev

of course sir I’ll do

Android Tags:android, firebase, ssl-certificate

Post navigation

Previous Post: [FIXED] Android ACTION_VIEW intent is not opening urls in non-browser apps like twitter and instagram
Next Post: [FIXED] android – Check if activity is active, and if active pass data from service to activity?

Related Posts

[FIXED] java – POJO class from JSON with a value that can either be string on integer Android
[FIXED] android – Realm Suddenly started generating compile errors in a code that was working with no problem _ClassNameRealmProxy Android
[FIXED] android – React Native Google Signin with multiple accounts Android
[FIXED] Manually move accessibility focus in Jetpack Compose Android
[FIXED] android studio was unable to recognize the apk(is) currently installed on the device Android
[FIXED] Visual Studio Code – Flutter : “Device emulator-5554 is offline” Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • What is a good substitute for condensed milk?
  • ¿Como el cuerpo te avisa cuando te va a dar un infarto?
  • What is the luxury brand of Jaguar?
  • Who is Big poppa baseball player?
  • What material are foam runners?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme