yeah so in one of my use case like so regarding the SSL pinning so we have to pin a certificate while making an API call so where the certificate which we have to download from from the domain and so it will be hard-coded in the mobile app so there is a case like so yearly once or in a period of time there is a chance like the domain can change the certificate in there and so in that case what happened is like the mobile app will start stop working since there since the new since the domain will be having a new certificate but the mobile app will be holding the old certificate values so in so in order in in order to overcome this issue so the first thing will be like we need to roll out an application to the Play Store so that the new app will be holding the new certificate of the domain so so that the user has to update their app to start working on the application this is so when this happened so it came like this is not a correct solution for this problem since we can't make an user to update the app like the old apps will stop working so to to overcome this issue so we thought like instead of hard-coding the file or the certificate in our mobile mobile application we need to have a mechanism to dynamically fetch that certificate data from our back-end server on a API using an API call so that if there is any change in the certificate in the domain new certificate is getting changed in the domain so instead of giving a new update in the Play Store the mobile app has to make an API call or a mobile app has to get communicated to the back-end server and get the latest data regarding the certificate hash so that we can dynamically change the content and proceed with the other operations so what we have done is like so instead of hard-coding or keeping the file inside our workspace so we had a mechanism like we had a versioning kind of thing with the back-end API call so whenever there is a new change happened in the new certificate got put in a domain so when the version of the version will change so whenever the mobile app is checking the version so if there is a change in version will be getting the new certificate for the domain from the back-end servers so the mobile app will think like okay so the domain got a new certificate so we should not be using the old certificate so we will be removing the old certificate from the mobile and we will be downloading the new certificate from the server so from there on the mobile app will be started using the new certificate so this thing eliminated a flow of sending a new app to the Play Store going for approval then go to the customer and the customer has to update the app to start working so it got so this solution has provided a better way for an user for an uninterrupted service
