ParseCloud.callFunctionInBackground is execute twice
New Issue Checklist
- [ ] I am not disclosing a vulnerability.
- [ ] I am not just asking a question.
- [x] I have searched through existing issues.
- [x] I can reproduce the issue with the latest version of Parse Server and the Parse Android SDK.
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
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.