hide smart app banner when running from apk or ipa

435 Views Asked by At

I have a mobile website and an android app. The android app is created as a container for the same mobile website. I have installed smart app banner package in my website project and when I tried the mobile website using my android device that smart banner is appeared correctly. But I have a challenge now. That is to hide the banner when using my android app. Currently when using my android app there also the same banner is appearing because it was built using the same mobile website. So I am sure I cannot hide it from android project side and only way to hide is from web project side.

My web project is implemented using vue js and smart banner was implemented as in below link. https://github.com/kudago/smart-app-banner/issues/104

I could find some way of hiding for certain browser like this <meta name="smartbanner:exclude-user-agent-regex" content=".*Safari.*">. But how can I hide it for .apk/.ipa instead of filtering by browser. Any working solution is highly appreciated.

0

There are 0 best solutions below