Currently setting up a mobile app using React Native (Expo), and I would like to validate the user using only the pin (not password), using PIN Protect. Is there documentation available to authenticate the user using their PIN with Rest API.
Reference: https://developer.salesforce.com/blogs/developer-relations/2014/04/adding-salesforce-pin-security-to-native-and-hybrid-mobile-apps
Related
is there any way I can detect what's the default SMS app set for a user's phone on React Native? Reason is because I was trying to initiate sms with sms: URI Schema, however this will fail when user had other 3rd party apps set as their default messaging app and it's causing a bad user experience :/
I am creating an react native app. How I linking from my app to strava app to authenticate to get the strava token to my app
Hi you can use the react-native-app-auth package, which is well maintained and created by Formidable Labs. They have a docs page on adding authentication with Strava - https://github.com/FormidableLabs/react-native-app-auth/blob/main/docs/config-examples/strava.md
SMS retrieve API
I am working with a react native android application in this application I am reading a OTP that is sent from the SMS gateway I am using SMS Read permission the application is working fine but when I am trying to upload it in google play it is rejecting it because of SMS Read permission. I have read about the substitute and that is SMS retrieve API can anyone help me how to implement it in react native.
I want to migrate an existing Android+iOS native app to a react-native Expo app.
In current native app, we store an auth token. I'd like this auth token to be available through ReactNative AsyncStorage api out of the box, without requiring RN native code (ie, ejecting Expo).
Is this possible, in current native app, to start writing to the same place as AsyncStorage will read after the migration?
We aim for the smoothest transition from native app to RN app, and user should stay authenticated after the upgrade.
Depends on what you're current app is using for storage. I recently used this library (https://github.com/kevinresol/react-native-default-preference) to get the data from user defaults then move it into async storage. I only migrate the refresh token and auth token.
If they are using core data, then you'll need to setup the same models etc - https://github.com/realm/realm-js/issues/584
The other storage mechanisms you can easily find a native package to get the data.
if the app is under same app name scheme you may be able to access after upgrade i guess.
If you create a WebView within a react-native application, is it possible to access the cookie from the WebView to be passed in subsequent requests?
An example would be presenting the User with a login page with reCaptcha in a WebView. Then using the authentication cookies from a successful login to make subsequent API requests to the same site.
React Native is just a bridge on top of the native code. Anything you can write in objective-c/java can be used in React Native by creating native modules.
I am not sure if there is JavaScript code present for clearing the cache of a webview, but you can certainly write native code for it and then bridge it using native module.
Here is the link for the native code(iOS) : https://stackoverflow.com/a/5606703/2164029
Tutorial for creating native moduels : https://facebook.github.io/react-native/docs/native-modules-ios.html
I believe this https://github.com/joeferraro/react-native-cookies should provide you what you want.I have used this to clear cookies successfully.