I'm using the newest version of SDK in Unity, build for both Android and iOS.
I want to upload the game progress file in a frequency, and specially, when user minimize the app i will force to do a uploading:
void OnApplicationPause(bool paused){ if(paused){ ... create request PlayFabDataAPI.InitiateFileUploads(request, OnInitFileUpload, OnInitFailed); Debug.Log("start upload."); } } void OnInitFileUpload(InitiateFileUploadsResponse response){ Debug.Log("upload inited."); } void OnInitFailed(PlayFabError error){ Debug.Log(error); }
We will get "start upload" log after minimizing, but "upload inited" will not be triggered while in background ever, when i restore the app to foreground, then the "upload inited" fired.
So, it indicated that we can not finish InitiateFileUploads in background mode to do a uploading. Both Android iOS tested, same.
I am wondering, is there a way to achieve this? Or no way, we just can not do uploading in background?
Thanks in advance!