Same code is working on emulator but it's not working on real device.
All the permissions are provided:
await PermissionsAndroid.request("android.permission.RECEIVE_SMS");
await PermissionsAndroid.request("android.permission.READ_SMS");
await PermissionsAndroid.request("android.permission.SEND_SMS");
await PermissionsAndroid.request("android.permission.READ_CALL_LOG");
await PermissionsAndroid.request("android.permission.READ_PHONE_STATE");
Same code is working on emulator but it's not working on real device.
All the permissions are provided: await PermissionsAndroid.request("android.permission.RECEIVE_SMS"); await PermissionsAndroid.request("android.permission.READ_SMS"); await PermissionsAndroid.request("android.permission.SEND_SMS"); await PermissionsAndroid.request("android.permission.READ_CALL_LOG"); await PermissionsAndroid.request("android.permission.READ_PHONE_STATE");
useEffect(() => { console.log("Start SMS Listener") let subscription = SmsListener.addListener((message) => { console.log("Message", message); setMessage(message); }); return () => { console.log("Stop SMS Listener") subscription.remove(); }; }, []);
Please help me out. Thanks.