hiranpeiris / react-native-otp-auto-fill

Auto fill OTP library for React Native
MIT License
6 stars 8 forks source link

Auto fill is not working in the Android Sign APK #16

Closed Satishpethani92 closed 10 months ago

Satishpethani92 commented 1 year ago

I have implement this library and test it. it's working well in debug but not getting auto fill in sign apk.

Is there any permission need to add in android manifest file or not ? @hiranpeiris

AminDannak commented 1 year ago

I have implement this library and test it. it's working well in debug but not getting auto fill in sign apk.

Is there any permission need to add in android manifest file or not ? @hiranpeiris

same problem

Satishpethani92 commented 1 year ago

@hiranpeiris Is there any update regarding signed apk ?

hiranpeiris commented 1 year ago

@Satishpethani92 Yes. Just use the following code and get the Android Signature key. Then put it in your SMS body.

// This is only needed once to get the Android Signature key for SMS body const handleOnAndroidSignature = ({ nativeEvent: { code }, }: NativeSyntheticEvent<{ code: string }>) => { Alert.alert('Android Signature Key for SMS body:', code); };

Note: Remove this after you read the Android Signature key.

muzammil-kt commented 10 months ago

Any update?

Satishpethani92 commented 10 months ago

I have implement this library and test it. it's working well in debug but not getting auto fill in sign apk. Is there any permission need to add in android manifest file or not ? @hiranpeiris

same problem

Now it's working Thank you!