Hello,
Some of my users, who previously had no problems, report a frozen screen at the beginning of my game. I managed to get a logcat dump from one of them, and here the result:
E/Unity ( 8927): Exception: The number of PlayFabSharedSettings objects should be 1: 0 E/Unity ( 8927): at PlayFab.PlayFabSettings.GetSharedSettingsObjectPrivate () [0x00026] in <afe380847d584edea9835bb24beaf866>:0 E/Unity ( 8927): at PlayFab.PlayFabSettings.get_PlayFabSharedPrivate () [0x00010] in <afe380847d584edea9835bb24beaf866>:0 E/Unity ( 8927): at PlayFab.PlayFabSettings.get_RequestType () [0x00000] in <afe380847d584edea9835bb24beaf866>:0 E/Unity ( 8927): at PlayFab.PluginManager.CreatePlayFabTransportPlugin () [0x00002] in <afe380847d584edea9835bb24beaf866>:0 E/Unity ( 8927): at PlayFab.PluginManager.GetPluginInternal (PlayFab.PluginContract contract, System.String instanceName) [0x00038] in <afe380847d584edea9835bb24beaf866>:0 E/Unity ( 8927): at PlayFab.PluginManager.GetPlugin[T] (PlayFab.PluginContract contract, System.String instanceName) [0x00000] in <afe380847d584edea9835bb24beaf866>:0 E/Unity ( 8927): at PlayFab.Internal.PlayFabHttp.IsClientLoggedIn () [0x00000] in <afe380847d584edea9835bb24beaf866>:0 E/Unity ( 8927): at PlayFab.PlayFabClientAPI.IsClientLoggedIn () [0x00000] in <afe380847d584edea9835bb24beaf866>:0 E/Unity ( 8927): at
The log is indeed truncated, but the exception is clear: there is 0 PlayFabSharedSettings in this build. Now, I understand you create one and only one of theses files from the Editor, but this user ended up having none (but managed to get some progress in the game, so at one point, there was one).
Have is this even possible ? PlayFab code doesn't seem to rewrite the file, ever. The build generated by Unity should contain that file and never be altered.
I'm beginning to suspect that those players actually tried to temper with the APK and are now stuck, but maybe this is a legitimate mishap ?
I'm using Unity 2017.4.9f1
PlayFab SDK version is: 2.54.181105