Ionic Security

Recently I built an app using ionic with --minifyjs, --production, and --release flags. After successful publishing, I tried to get it’s apk file from a rooted device, decompiled, and unminified it, I got the readable main.js code. There are sensitive codes.
So is there a way to encrypt or truely minify the code? Or any suggestions for securing with Ionic?

This topic is discussed extensively in this forum.

Please check the posts and contribute where meeded


There is no way to really encrypt Javascript code without making it impossible to distribute it as an app that can be downloaded by users.