add condition to not run unused code when it is a native app
add condition to not run unused code when it is a native app

gaplo917/hkepc-ionic-reader,gaplo917/hkepc-ionic-reader,gaplo917/hkepc-ionic-reader