Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParseCloud.callFunctionInBackground is execute twice #1149

Open
2 of 4 tasks
dubn10 opened this issue Dec 21, 2021 · 2 comments
Open
2 of 4 tasks

ParseCloud.callFunctionInBackground is execute twice #1149

dubn10 opened this issue Dec 21, 2021 · 2 comments
Labels
type:question Support or code-level question

Comments

@dubn10
Copy link

dubn10 commented Dec 21, 2021

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
@parse-github-assistant
Copy link

parse-github-assistant bot commented Dec 21, 2021

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.

@mtrezza
Copy link
Member

mtrezza commented Dec 22, 2021

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 parse-community/parse-server#6744.

@mtrezza mtrezza added the type:question Support or code-level question label Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question Support or code-level question
Projects
None yet
Development

No branches or pull requests

2 participants