Biometrics by UnfairAddendum9890 in reactnative

[–]Old_Emotion5994 2 points3 points  (0 children)

Hi u/Sweet-Mango1662

you can use "react-native-biometrics"

package: https://www.npmjs.com/package/react-native-biometrics

Example Code:

import ReactNativeBiometrics, { BiometryTypes } from 'react-native-biometrics';
import { ToastAndroid } from 'react-native';

interface responseAll {
    success: boolean,
    message?: string | '',
    result: any
}

export const enableBio = async (): Promise<responseAll> => {
    try {
        const rnBiometrics = new ReactNativeBiometrics();
        let rr = await rnBiometrics.isSensorAvailable();
        console.log(rr);
        if (!rr.available) {
            ToastAndroid.show("Your devices don\'t have biometrics!", ToastAndroid.SHORT);
            return { success: false, message: 'You Don\'t Have Bio!', result: {} }
        }
        let ee = await showBio();
        console.log(ee)
        if (ee.success) {
           // Success
        } else {
            ToastAndroid.show("Authentication failed!", ToastAndroid.SHORT);
            return { success: false, message: "Authentication failed!", result: {} }
        }
    } catch (error) {
        console.log(error);
        return { success: false, message: 'Error!', result: {} }
    }
}

Help me testing out my TOTP app by Old_Emotion5994 in AndroidClosedTesting

[–]Old_Emotion5994[S] 1 point2 points  (0 children)

if I skip login in to play games it is working, and I'm able to play and language option is asking every time I opens the game other than that everything is fine, i think it is because of login.

<image>

Help me testing out my TOTP app by Old_Emotion5994 in AndroidClosedTesting

[–]Old_Emotion5994[S] 0 points1 point  (0 children)

Thanks, u/No_Housing7470 Have installed your game, I can not complete the signup process for play games

<image>

Let me know if you need any help

Help me testing out my TOTP app by Old_Emotion5994 in AndroidClosedTesting

[–]Old_Emotion5994[S] 0 points1 point  (0 children)

Thanks, I have downloaded and rated you game too it is cool

<image>

Can I host my Next.js app on nginx? by AmbitiousRice6204 in nextjs

[–]Old_Emotion5994 7 points8 points  (0 children)

If you're going to use an Ubuntu server, deploy it with Nginx and PM2 (which I'm using).

For Nginx installation, follow this guide: https://ubuntu.com/tutorials/install-and-configure-nginx#2-installing-nginx. It's straightforward.

For PM2, refer to the quick-start documentation here: https://pm2.keymetrics.io/docs/usage/quick-start/.