• 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 /
  • API and SDK Questions /
This question was closed Oct 31 at 11:46 AM by Muhammad Roshaan Tariq for the following reason: The question is answered, right answer was accepted
avatar image
Question by Muhammad Roshaan Tariq · Oct 02 at 05:37 AM · dataTitle Data

Access Title Data without User Login

Hi,

I have stored some important data in Title Data and I want all of my users to be able to access that data as soon as they open the app even if they are not Logged-in and the chances are they will not be Logged-in.

Can I access it and Is it possible on Playfab?

Comment
Roshaan

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

  • Sort: 
avatar image
Best Answer

Answer by Muhammad Roshaan Tariq · Oct 03 at 06:09 AM

@Citrus Yan Well if the players must be logged-in I think a silent login would do the task for me in this matter without my players knowing.


The next question arises is that how will I log them out of the silent login I did in the background? Because I would like them to use the Email/Password login they created. Is there any function to delete their credentials?

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 Citrus Yan ♦ · Oct 03 at 09:34 AM 0
Share

Hi @Muhammad Roshaan Tariq,

It's easy, if you are using Unity SDK, simply call PlayFabClientAPI.ForgetAllCredentials() will do the work. What it does is the following:

public void ForgetAllCredentials()
        {
            PlayFabId = null;
#if !DISABLE_PLAYFABCLIENT_API
            ClientSessionTicket = null;
#endif
#if !DISABLE_PLAYFABENTITY_API
            EntityToken = null;
            EntityId = null;
            EntityType = null;
#endif
        }
    }

After that, the players won't be able to make the next API calls unless they log in again. If you are using other SDKs, you can first check if they contain this method, or else you can write it manually.

avatar image Muhammad Roshaan Tariq · Oct 03 at 11:23 AM 0
Share

Thank you @Citrus Yan

avatar image

Answer by Citrus Yan · Oct 02 at 09:36 AM

Hi @Muhammad Roshaan Tariq,

>>Can I access it and Is it possible on Playfab?

No, you cannot access it under normal circumstances since it requires credentials retrieved after a player logs in. You may use Admin/GetTitleData or Server/GetTitleData to access it from the client, however, it’s highly un-recommended since it will expose your secret key to the clients.

Comment

People who like this

0 Show 0 · 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

Navigation

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

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    Writable Shared Title Data 1 Answer

    Non-sharded title data or query of player data? 1 Answer

    How to get a list of groups 1 Answer

    Data Access of Other Players 1 Answer

    how to export all data title ? cloud script ? 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