Skip to content

Commit 10a6430

Browse files
authored
Merge pull request #10 from airwallex/feature/APAM-70-Risk-SDK-not-recording-open-events
[APAM70] risk SDK not recording open events
2 parents adc2df5 + 688321c commit 10a6430

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

RiskSdk/src/main/java/com/airwallex/risk/ApiService.kt

+3
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ internal class ApiService(
6666
if (connection.responseCode >= serverErrorCode) {
6767
throw ServerException()
6868
}
69+
if (events.any { event -> event.event.type == Constants.installationEventName }) {
70+
riskContext.hasSentInstallationEvent = true
71+
}
6972
} catch (e: IOException) {
7073
Log.d(Constants.logTag, "HttpURLConnection output error: ${e.message}")
7174
when (e) {

0 commit comments

Comments
 (0)