Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ServiceStack.Redis throws PlatformNotSupported Exception from unity exported .apk file

I am using ServiceStack. Redis to access my remote Redis Server. It doesn't throw any exceptions when I run it on my PC(Unity Android Environment). After I export .apk file from Unity and run the program on my android phone, it throws PlatformNotSupported exception. Is that because I don't include some .dll files? Or is ServiceStack. Redis not able to run on the mobile devices? I am a newbie to unity and servicestack.redis. Does anyone have idea?

Thanks in advance!

like image 423
LALalo Avatar asked Jan 25 '26 10:01

LALalo


1 Answers

The Exception is because ServiceStack.Redis is using an API that's not supported on Android which throws a PlatformNotSupported at runtime when called.

Mobile devices like iOS/Android isn't a tested or supported platform for ServiceStack.Redis.

like image 146
mythz Avatar answered Jan 27 '26 00:01

mythz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!