Skip to content

Commit e145ac7

Browse files
Restore callback behaviour and make it compatible with Android 12
Related to YM-26407
1 parent 38b7d01 commit e145ac7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
minSdkVersionVersion=21
2525
targetSdkVersion=31
26-
compileSdkVersion=28
26+
compileSdkVersion=31
2727

2828
uiWidgetsVersion=1.9.0
2929
supportLibraryVersion=1.0.2
@@ -56,7 +56,7 @@ easyIDScheme=easyid://
5656
pomId=yoti-button-sdk
5757
pomGroup=com.yoti.mobile.android.sdk
5858
pomPackaging=aar
59-
pomVersion=1.3.3
59+
pomVersion=1.3.4
6060
pomName=Yoti Button SDK
6161
pomDescription=Button SDK that allows 3rd party to trigger Yoti as support app
6262
currentVersionCode=000013

yoti-sdk/src/main/java/com/yoti/mobile/android/sdk/ReceiverActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ protected void onCreate(Bundle savedInstanceState) {
1212

1313
Intent intent = new Intent(getIntent().getAction());
1414
intent.setPackage(getIntent().getPackage());
15+
intent.putExtras(getIntent().getExtras());
1516

1617
sendBroadcast(intent);
1718

yoti-sdk/src/main/java/com/yoti/mobile/android/sdk/kernelSDK/KernelSDKIntentService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ private void handleActionStartScenario(String useCaseId, ResultReceiver resultRe
152152
}
153153

154154
int flags;
155-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
156-
flags = PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE;
155+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
156+
flags = PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE;
157157
} else {
158158
flags = PendingIntent.FLAG_UPDATE_CURRENT;
159159
}

0 commit comments

Comments
 (0)