diff --git a/src/scripts/android/updateAndroidManifest.js b/src/scripts/android/updateAndroidManifest.js index 4aed54a6..0b6538ae 100644 --- a/src/scripts/android/updateAndroidManifest.js +++ b/src/scripts/android/updateAndroidManifest.js @@ -302,8 +302,11 @@ intentFilterData.push(getAppLinkIntentFilterDictionary(linkDomain)); intentFilterData.push(getAppLinkIntentFilterDictionary(alternate)); } else { - // bnc.lt and custom domains - if (preferences.androidPrefix === null) { + // bnc.lt + if ( + linkDomain.indexOf("bnc.lt") !== -1 && + preferences.androidPrefix === null + ) { throw new Error( 'BRANCH SDK: Invalid "android-prefix" in in your config.xml. Docs https://goo.gl/GijGKP' );