Qiscus Chat SDK (core) v1.3.35
·
92 commits
to master
since this release
Changelog :
- Support Android 12
****Note :
- Set targetSDKVersion = 31
- Set compileSDKVersion = 31
- Please check your code to support android 12, from link https://developer.android.com/about/versions/12/behavior-changes-12
e.g. when using PendingIntent:
PendingIntent pendingIntent;
Intent openIntent = new Intent(context, QiscusPushNotificationClickReceiver.class);
openIntent.putExtra("data", comment);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
pendingIntent = PendingIntent.getBroadcast(context, QiscusNumberUtil.convertToInt(comment.getRoomId()),
openIntent, PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_CANCEL_CURRENT);
} else {
pendingIntent = PendingIntent.getBroadcast(context, QiscusNumberUtil.convertToInt(comment.getRoomId()),
openIntent, PendingIntent.FLAG_CANCEL_CURRENT);
}
eg when using intent-filter in manifest, set android:exported false or true
<activity android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>