in Android/app/src/main/java/com/example/samplestickerapp/WhitelistCheck.java [31:42]
static boolean isWhitelisted(@NonNull Context context, @NonNull String identifier) {
try {
if (!isWhatsAppConsumerAppInstalled(context.getPackageManager()) && !isWhatsAppSmbAppInstalled(context.getPackageManager())) {
return false;
}
boolean consumerResult = isStickerPackWhitelistedInWhatsAppConsumer(context, identifier);
boolean smbResult = isStickerPackWhitelistedInWhatsAppSmb(context, identifier);
return consumerResult && smbResult;
} catch (Exception e) {
return false;
}
}