Hi, I'm getting an error whenever I build the project for Android platform whereas I'm not getting any error when I build for iOS
Please check the attached screenshot for log.
I have included the server models into my script but still getting this error for Android
Answer by Roshaan · Mar 19 at 09:43 AM
I think I found the solution to my problem "Android build issue"
I upgraded my playfab SDK and I didn't checked the "ENABLE SERVER API" from Playfab Editor Extension. I thought it was already checked, but it wasn't. Checking it to "true" resolved my build issue.
I understand the thing @Hernando and you( @SethDu) told me how unsafe it is to use server api on client side code. And as I was telling Hernando that I'm using the server api just to check the verification status of my player
Please check the attached screenshot it might better explain my point
Answer by Hernando · Mar 19 at 08:34 AM
I'm not familiar with Android development, but I noticed that you used ServerModels in your code, which is only used when calling ServerAPI. Using the ServerAPI in the client side is a very dangerous behavior and it may leak your Secret Key. So it is not recommended.
If you like, please post your demand scenario, I believe that most scenes will have a safe and effective solution.
In addition, for other Unity side issues, you can get more help from the Unity Community.
I'm using Server API to check the verification status of my user.
UE4 Blueprint decodeGetMatchmakerGameInfoResult 3 Answers
500 Server Error when making multiple IAP purchases with receipt validation 1 Answer
TitleId in SendAccountRecoveryEmailAsync (CSharpSDK) 1 Answer
UE4 continually crashing 1 Answer
Values "ShowAvatarUrl" missing in the web model "PlayerProfileViewConstraints" 1 Answer