Open asepjumadi opened 3 years ago
I have figured that you need the following permissions for it to work
`
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.READ_CALL_LOG"/>` <---- this one is required to get phone number
I have figured that you need the following permissions for it to work
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android.permission.READ_CALL_LOG"/>
<---- this one is required to get phone number
Does this work when app is in background or a foreground service is required to keep the app live???? Without making the app as default dialer call logs permission is a big issue.
I test using hook react native 0.64.0 work in android 8.1 but not working in android 10 and 11 permission already be declared in manifest like
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
source code like this:useEffect(() => { startReadSMS(); startListenerTapped(); console.log(sms,'my sms on duty') return ()=>{ //ReadSms.stopReadSMS(); } },[sms])
#