Skip to content

Qiscus Chat SDK (core) v1.3.35

Compare
Choose a tag to compare
@ariefnurputranto ariefnurputranto released this 02 Nov 08:47
· 92 commits to master since this release

Changelog :

  • Support Android 12

****Note :

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>