Deeplink To Tizen Store Issue in Tizen 8.0 TV

Hey Community,

I have developed the deeplink functionality to either navigate to app if downloaded else navigate to tizen store if app is not downloaded. The functionality is working fine in tizen 7.0 but on tizen 8.0 the old tizen apps which are present in tizen 7.0 and removed in tizen 8.0 is getting opened (you can not find this tizen apps normally while navigating in tv), also sometimes if I power off tv and power on again then the tizen app store is not launching at all, sometimes it is showing blank screen.

Below is the code I am using for deeplink functionality -

const redirectToTizenStore = () => {
  var service = new tizen.ApplicationControl(
    "http://tizen.org/appcontrol/operation/view",
    "tizenstore://SellerApps/p59ezq3jff", // Change to your store app link
    null,
    null,
    null
  );

  var id = "com.samsung.tv.store";

  try {
    tizen.application.launchAppControl(
      service,
      id,
      function () {
        console.log("Store Service launched");
      },
      function (err) {
   
        console.log("redirectToTizenStore failed");
      },
      null
    );
  } catch (err) {
    console.error("Error launching Tizen store:", err);
  }
};
const launchApp = (appId) => {
  var service = new tizen.ApplicationControl(
    "http://tizen.org/appcontrol/operation/tizenstoreview",
    "tizenstore://MainPage",
    null,
    null,
    null
  );
  try {
    tizen?.application?.launchAppControl(
      service,
      appId,
      function () {
        console.log("app Service launched");
      },
      function (err) {
        console.log("redirectToTizenStore");

        //failed to launch application, redirect to tizen store
        console.log('No application with given id found, redirecting to store')
        redirectToTizenStore();
      },
      null
    );
  } catch (exc) {
    console.log("launchService exc: " + exc);
  }
};

Thanks for support in advanceā€¦

Hello,
For Smart TV questions, please log in to TV Seller Office: (Seller2.0), go to the 1:1 Q&A section, and ask a question.