[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Add unknown scheme handler
In case of unknown scheme, send uri to app-control
[SCMRequest] N/A
Change-Id: Ie148d28b29765d293b051242b2e1731e4d6952b5
Scheme::Type type = scheme.GetType();
if (type < Scheme::FILE || type >= Scheme::COUNT) {
LogError("Invalid scheme: " << name);
+ // case of unknown scheme, send to app-control
+ // This is temporary soultion. "invalid" scheme should be handled by
+ // scheme map data
+ bundle* bundleData = bundle_create();
+ appsvc_set_operation(bundleData, APPSVC_OPERATION_VIEW);
+ appsvc_set_uri(bundleData, uri);
+ CONTROLLER_POST_EVENT(
+ ApplicationLauncher,
+ ApplicationLauncherEvents::LaunchApplicationByAppService(
+ bundleData,
+ NULL,
+ NULL));
return false;
}