Use Android BroadcastReceiver to Read Incoming Call
In this demo, we will walk you through using the Android BroadcastReceiver to let your users receive Miscall OTP without typing the code.
If you haven't already, prepare your Android apps backend's API. You can see sample backend with PHP.
Make sure your users allowed these permissions! for guidelines to get google play permission click here
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<receiver
android:name=".MyBroadcastReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.PHONE_STATE" />
</intent-filter>
</receiver>
- Check for open issues or open a new issue for a feature request or a bug
- Fork the repository on Github to start making your changes to the
main
branch (or branch off of it) - Write a test which shows that the bug was fixed or that the feature works as expected
- Send a pull request and bug us until We merge it