Jump to content
  • 0

call get's disconnected when app is moved to background mode in swift.


Pratik Bansode
 Share

Question

Use Case-

- Start conference call 
- Put the device in  the background mode
- disabled my view to the remote users and then exit from the meeting 
- when I enter in foreground the app is going on but all remote view/users are fridged and I am not showing in the meeting nor in the conference call.
-- Background mode enabled - background fetch, audio,Airplay and picture in picture.

Thanks,
Pratik.
Link to comment
Share on other sites

  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

5 answers to this question

Recommended Posts

  • 0

Hi,

Sorry for the late reply,

Our iOS app disconnects if it goes to the background mode, if you don't close this;

override func viewWillDisappear(_ animated: Bool) {

    self.client.stop()

  }

It may not disconnect, however, it needs work on the lifecycle if you do that. 

If you can state your expectation from the app as how it should work for you, we can think of something.

Thanks
Tahir

 

Link to comment
Share on other sites

  • 0
Hi,
i already did that below is my code in viewwilldisappear.

open override func viewWillDisappear(_ animated: Bool) {

        self.publisherClient?.stop()

        for client in playerClients

        {

            client.playerClient.stop();

            conferenceClient.leaveRoom()

        }

        

    }


Link to comment
Share on other sites

  • 0

Hello,

 when I enter in foreground the app is going on but all remote view/users are fridged and I am not showing in the meeting nor in the conference call.

 

This is normal since you leaved the room in the code snippet. Frankly I am having hard time to understand your expectation from the program. Can you use the below format to explain your expected behaviour and steps to produce it.

Stop method deallocates the object, isn't it?  

### Steps to reproduce
1. 
2. 
3.

### Expected behavior
__Put as much detail here as possible__

### Actual behavior
Link to comment
Share on other sites

 Share

×
×
  • Create New...