Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by lmo · Aug 27, 2018 at 03:37 PM · unity3dsdksContent

Unity Download Content from CDN before Log-in,Download content with CDN before login

Hi, I have several assets that I want to download before launching the game but Playfab requires me to be logged in before downloading any asset from the CDN, is there a way to get files from CDN without making any login. I'm using the Unity SDK.

I currently get the following error when I try to get the download URL.

PlayFabException: Must be logged in to call this method PlayFab.PlayFabClientAPI.GetContentDownloadUrl

,

Hi, I have several assets that I want to download before launching the game but Playfab requires me to be logged in before downloading any asset from the CDN, is there a way to get files from CDN without making any login. I'm using the Unity SDK.

I currently get the following error when I try to get the download URL.

PlayFabException: Must be logged in to call this method PlayFab.PlayFabClientAPI.GetContentDownloadUrl

Comment

People who like this

0 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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Aug 28, 2018 at 01:59 AM

All Client API calls, apart from login and password reset, require a signed in user. What is the context in which you cannot log the user in before getting the content? Why is it not possible to sign the user in with a Device ID or Custom ID (which would require zero user interaction)?

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 lmo · Aug 28, 2018 at 01:07 PM 0
Share

Probably it's only the way I'm used to implement the games, the very first step I would do is to check weather I have all the assets that I need to launch the game, this would probably be the first loading screen, then I would proceed to a home screen or log-in screen and then I would do any authentication weather anonymous or with real credentials... but as you say with playfab I might need first to do an anonymous log-in with the device id and then a real log-in... I find it a bit clumsy but it would work too.

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

    1 Person is following this question.

    avatar image

    Related Questions

    How to show content on client side? 1 Answer

    Unity Download Content from CDN before Log-in 1 Answer

    linking issue android, FB. 0 Answers

    Build taking forever on XCode 11.5 1 Answer

    Catalog's Item Custom Data 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

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

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges