Parse-SDK-Android icon indicating copy to clipboard operation
Parse-SDK-Android copied to clipboard

ParseCloud.callFunctionInBackground is execute twice

Open dubn10 opened this issue 4 years ago • 2 comments

New Issue Checklist

Issue Description

When I switch wifi to mobile network, or the other way around, in the middle of a request, the cloud function is called twice.

Steps to reproduce

Do a CloudFuction call with ParseCloud.callFunctionInBackground, or ParseCloud.callFunction with mobile data and before this ends, change to wifi and thats do twice.

Environment

I do this with the last version of Parse 2.1.0, and 1.26

Parse Android SDK

  • SDK version: 2.1.0
  • Operating system version: Android 10, 11, 6

dubn10 avatar Dec 21 '21 18:12 dubn10

Thanks for opening this issue!

  • ❌ Please edit your post and use the provided template when creating a new issue. This helps everyone to understand your post better and asks for essential information to quicker review the issue.

When I switch wifi to mobile network, or the other way around, in the middle of a request, the cloud function is called twice.

A switch from mobile data to WiFi should be handled by the OS and be opaque for the Parse SDK. I don't remember that the Android SDK cares or behaves differently based on the type of connection. Unless this is a phenomenon that can be configured by the Parse SDK via a OS API, I am not sure there is much to do about this on the Parse SDK side. See also https://github.com/parse-community/parse-server/issues/6744.

mtrezza avatar Dec 22 '21 12:12 mtrezza