[SSL Pinning Plugin] Error when generating APK for mobile app using the SSL Pinning Plugin

Forge Component
(2)
Published on 17 Jul by OutSystems R&D
2 votes
Published on 17 Jul by OutSystems R&D

Hi,

I want to use the SSL pinning plugin in a mobile application. I have used version 3.0.1 for OS10. I have followed the instructions in the blog post for setting up and using the component. When I try to generate the Adndriod apk in debug mode I get the following error in the Android generation log:  "Failed to install 'cordova-outsystems-sslpinning': TypeError: Path must be a string. Received undefined".

Has anyone faced this issue?

Regards,
Alfio

Solution

Hi Alfio, 


Looking to the error, it seems to be an issue with the configuration of your resource with pinning keys.
Can you check if your configurations are similar to the screenshot in the attachment?


Thanks, 

Vitor


Solution

Hi Vitor,

Thank you very much for your help. I overlooked that I had given the resource file the wrong extension (.json.txt instead of .json).

Regards,
Alfio