react-native-ssl-pinning | React Native ssl pinning and cookies | iOS library
kandi X-RAY | react-native-ssl-pinning Summary
kandi X-RAY | react-native-ssl-pinning Summary
React Native ssl pinning and cookies handling based on okhttp3 on (Android). and AFNetworking on (iOS)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Fetch the domain
- Creates a temporary media file for the given URI
- Add headers from map
- Returns true if the part is a file
- Initialize trust manager
- Build response headers
- Initialize the public key pinner
- Set the request headers from the given map
- Build default OkHttpClient
- Add file data part
- Build a request from the given options
- Build request body request body
- Build OkHttpClient
- Get all cookies for a given domain
- Extract domain name from URL
- Copy an InputStream to a file
- Remove a cookie by its name
- Create JS modules
- Create a native JS library module for the application
- Create view managers
react-native-ssl-pinning Key Features
react-native-ssl-pinning Examples and Code Snippets
Community Discussions
Trending Discussions on react-native-ssl-pinning
QUESTION
So basically what I'm doing is simply making simple Axios call to our UAT server which has HTTPS enabled. I've tested the entire application in IOS API calls are working fine there but as soon as I've tested the same application in Android (On a real Android device) Axios calls are failing with Network Error. I have tested the same thing on Different Android phones with different wifi/network connect but still the same issue.
Upon researching, I've found that it's happening due to an SSL certificate issue. So I'm using the react-native-ssl-pinning library. But in that also I`m facing this issue.
Anyone faced this before. Am I missing something here?
...ANSWER
Answered 2021-Mar-27 at 08:15I think it's because you don't have the internet permission in your AndroidManifest.xml
. this link should help
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-native-ssl-pinning
Add maven { url "https://jitpack.io" } to project level build.gradle like this:.
In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name]
Go to node_modules ➜ react-native-ssl-pinning and add RNSslPinning.xcodeproj
In XCode, in the project navigator, select your project. Add libRNSslPinning.a to your project's Build Phases ➜ Link Binary With Libraries
Run your project (Cmd+R)<
Open up android/app/src/main/java/[...]/MainActivity.java
Add import com.toyberman.RNSslPinningPackage; to the imports at the top of the file
Add new RNSslPinningPackage() to the list returned by the getPackages() method
Append the following lines to android/settings.gradle: include ':react-native-ssl-pinning' project(':react-native-ssl-pinning').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-ssl-pinning/android')
Insert the following lines inside the dependencies block in android/app/build.gradle: compile project(':react-native-ssl-pinning')
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page