You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- new setOnYotiButtonClickListener method. Changelog file
- gradle plugin for closing and publication of the repo on OSSRH (maven central)
Modified:
- Deprecating setOnYotiScenarioListener method
- Using newest version of base-commons-ui that adds space between the image and the text of the Yoti button
- Sorting out issues in the gradle files.
- Small changes in the Readme file
Removed:
- Retrieve profile section from the README file
[See this code in one of our sample apps](./sample-app/src/main/res/layout/activity_main.xml)
74
79
75
80
The client end of the integration is now complete.
76
81
@@ -86,6 +91,7 @@ Add the below configuration to your manifest:
86
91
</intent-filter>
87
92
</receiver>
88
93
```
94
+
[See this code in one of our sample apps](./sample-app/src/main/AndroidManifest.xml)
89
95
90
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:
91
97
@@ -102,7 +108,7 @@ To be able to listen to those actions you will need to:
102
108
The AbstractYotiBroadcastReceiver will handle the logic regarding those actions, that's why your BroadcastReceiver will have to extend it. The first action defined (MY_CALLBACK_ACTION) will be used by the Yoti app to give you the result of the attributes sharing with your app.
@@ -127,12 +133,14 @@ We have included both config below :
127
133
}
128
134
}
129
135
```
136
+
[See this code in one of our sample apps](./sample-app/src/main/java/com/yoti/mobile/android/sdk/sampleapp/ShareAttributesResultBroadcastReceiver.java)
137
+
130
138
131
139
You will now need to specify your Client SDK ID and Scenario ID ready from your application dashboard.
132
140
The SDK can be initialised like this:
133
141
134
142
135
-
```javascript
143
+
```java
136
144
Scenario scenario =null;
137
145
try {
138
146
scenario =newScenario.Builder()
@@ -149,17 +157,38 @@ try {
149
157
YotiSDK.addScenario(scenario);
150
158
```
151
159
160
+
[See this code in one of our sample apps](./sample-app/src/main/java/com/yoti/mobile/android/sdk/sampleapp/MainActivity.java)
161
+
162
+
In order to set a listener for the events on the Yoti button you can specify one this way:
The Web SDK will handle the user storage. When you retrieve the user profile, you receive a user ID generated by Yoti exclusively for your application. This means that if the same individual logs into another app, Yoti will assign her/him a different ID. You can use this ID to verify whether (for your application) the retrieved profile identifies a new or an existing user. Please see relevant github pages for more information.
0 commit comments