• Sign Up Login
  • Features
    • Game Services
    • Real-time Analytics
    • LiveOps
    • Add-ons
  • Game Services
  • Real-time Analytics
  • LiveOps
  • Add-ons
  • Games
  • Pricing
  • Blog
  • Support
    • Docs
    • Forums
    • Contact
  • Docs
  • Forums
  • Contact
  • Sign Up Login
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges
  • Home /
  • Bugs /
avatar image
Question by Roshaan · Mar 18 at 12:21 PM · apissdks

Android Build Error

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

screenshot-2019-03-18-at-50805-pm.png (154.1 kB)
Comment
pixelsage

People who like this

1 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

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.

Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SethDu ♦ · Mar 19 at 09:57 AM 0
Share
  1. Like @Hernando has mentioned, it will be unsafe if you are trying to use server API on clients because there will be abusive use if a player obtains the secret key. We highly recommend you to implement server API on an external secure server or on the Cloud Script. We have to double check this with you because this is important.
  2. I am not sure what API you are using, but PlayFab is based on RESTful API and it is stateless and we do not understand what does “check verification status” mean. We can help if you provide more details.
avatar image Roshaan SethDu ♦ · Mar 19 at 10:15 AM 0
Share

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

screenshot-2019-03-19-at-30723-pm.png (44.6 kB)
avatar image

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.

Comment

People who like this

0 Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Roshaan · Mar 19 at 09:35 AM 0
Share

I'm using Server API to check the verification status of my user.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    5 People are following this question.

    avatar image avatar image avatar image avatar image avatar image

    Related Questions

    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

    • PlayFab

      • Features
      • Games
      • Pricing
      • Blog
    • Engineers

      • Documentation
      • Quickstarts
      • API Reference
      • SDKs
      • Usage Limits
    • Support

      • Forums
      • Videos
      • Contact
      • Service Health
      • Terms of Service
    • Social

      • Facebook
      • Twitter
      • LinkedIn
      • YouTube
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • About Microsoft
    • Jobs
    • Accessibility
    • Diversity & inclusion
    • Security
    • Company news
    • © Microsoft 2019
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Post an idea
    • Create an article
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges