- }
- if (!WrtDB::FeatureDAOReadOnly::isFeatureInstalled(
- DPL::ToUTF8String(it->name))) {
- LogWarning("Feature not found. Checking if required :[" <<
- DPL::ToUTF8String(it->name) << "]");
-
- if (it->required) {
- /**
- * WL-3210 The WRT MUST inform the user if a widget cannot be
- * installed because one or more required features are not
- * supported.
- */
- std::ostringstream os;
- os << "Widget cannot be installed, required feature is missing:["
- << DPL::ToUTF8String(it->name) << "]";
- if (!GlobalSettings::TestModeEnabled() && !isTizenWebApp()) {
- std::string label = os.str();
- createInstallPopup(PopupType::WIDGET_WRONG_FEATURE_INFO, label);
- }
- ThrowMsg(Exceptions::WidgetConfigFileInvalid, os.str());
- }