30
Views
0
Comments
[SSL Pinning Plugin] SSL Pinning Implementation with custom screen or message IOS and Android
ssl-pinning-plugin
Mobile icon
Forge asset by OutSystems
Application Type
Mobile

Hello,

I’m using an SSL pinning plugin in my app, and I’ve noticed that Android and iOS exhibit different behaviors. On Android devices, I need to invoke the CheckCertificateForUrl action and implement logic to block the user from proceeding past the splash screen and making network requests if SSL pinning fails. 

Simply having the RequireSSLPinning block on the splash screen isn’t enough—if the hash in my pinning.json is invalid, the plugin doesn't prevent the user from continuing.

On iOS, however, the user is immediately blocked and a network exception is thrown when there’s an invalid hash. I’d like to prevent iOS from triggering a network exception and instead rely on the CheckCertificateForUrl action. This way, in case of an error, I can display a custom message to the user.

How can I achieve this on iOS?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.