meteorrn / meteor-react-native

Meteor client for React Native matching Meteor Spec
https://guide.meteor.com/react-native.html
Other
59 stars 31 forks source link

Method call is not working after resuming from the background #49

Closed midhunevolvier closed 1 year ago

midhunevolvier commented 3 years ago

Describe the bug

Unable to do a method call after resuming from the background after 10-15 mins. Meteor connection status(meteor.status()=true) is true. But no responsce from server. Can anyone help me?

To Reproduce

Steps to reproduce the behavior:

  1. Open the app
  2. Minimize the app
  3. Open the app after 10-15 mins

Expected behavior

Should be able to call the methods and get the results from the server even after resuming the app from the background.

mmelk commented 1 year ago

@jankapunkt Sorry for late response.

I have tried your approach to call 'death' request and after that call the main method. But In my case, when I try to reconnect (in the onDisconnected() function) no response was shown. I tried to not reconnect and it worked for me. But it give me another issue. The call did not work when I restored app from background before Meteor was disconnected.

mmelk commented 1 year ago

Also, whenever I logged out status of the Meteor, I saw only 'connected' state.

github-actions[bot] commented 1 year ago

Closing this issue due to no activity. Feel free to reopen.

jankapunkt commented 1 year ago

reopen