Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.57 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.57 KB

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.

Setup

If you haven't already, prepare your Android apps backend's API. You can see sample backend with PHP.

Permissions

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>

Contribute

  1. Check for open issues or open a new issue for a feature request or a bug
  2. Fork the repository on Github to start making your changes to the main branch (or branch off of it)
  3. Write a test which shows that the bug was fixed or that the feature works as expected
  4. Send a pull request and bug us until We merge it