I am defining some variables in a class file with public static types in my xamarin forms cross platform application. My question is if these variable data somehow accessible by hackers or intruders from apk or ipa files ?
Then you'll be in trouble. If you want to store some secret information in these variables like access token or some other secrets then you can use the Xamarin Essentials Secure Storage.https://docs.microsoft.com/en-us/xamarin/essentials/secure-storage?tabs=android
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies