Skip to content

Commit 8e8c389

Browse files
committed
Couple of amends:
Fixing version in example. Adding comment and example about exported broadcast receivers. YD-881
1 parent 11572d2 commit 8e8c389

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ Please start by adding dependencies in the "build.grade" file inside your applic
5252

5353
```gradle
5454
dependencies {
55-
compile(com.yoti.mobile.android.sdk:yoti-button-sdk:1.0.0)
55+
compile(com.yoti.mobile.android.sdk:yoti-button-sdk:1.1.0)
5656
}
5757
```
58-
OR if you are using a recent version of gradle (>= 3.x):
58+
OR if you are using a more recent version of gradle (>= 3.x):
5959
```gradle
6060
dependencies {
61-
implementation(com.yoti.mobile.android.sdk:yoti-button-sdk:1.0.0)
61+
implementation(com.yoti.mobile.android.sdk:yoti-button-sdk:1.1.0)
6262
}
6363
```
6464

@@ -84,7 +84,7 @@ The client end of the integration is now complete.
8484
Add the below configuration to your manifest:
8585

8686
```xml
87-
<receiver android:name=".MyBroadcastReceiver">
87+
<receiver android:name=".MyBroadcastReceiver" android:exported="false">
8888
<intent-filter>
8989
<action android:name="YOUR_CALLBACK_ACTION"/>
9090
<action android:name="YOUR_BACKEND_CALLBACK_ACTION"/>
@@ -93,7 +93,11 @@ Add the below configuration to your manifest:
9393
```
9494
[See this code in one of our sample apps](./sample-app/src/main/AndroidManifest.xml)
9595

96-
Adding this broadcast receiver class, this acts as a listener for Yoti to get the callback URL from the Yoti app. Please note there are two call back options:
96+
This broadcast receiver was used to receive the communication back from the Yoti App. That's not
97+
the case in recent versions of the SDK and it is only used internally within your app. Therefore we
98+
strongly recommend you to declare your receiver with the option exported="false".
99+
100+
Please note there are two call back options:
97101

98102
1) You handle the callback to your backend
99103
2) Let the SDK manage this for you

0 commit comments

Comments
 (0)