flutter app create new instance when app resume

728 views Asked by At

I am working on a meet app with Jitsi meet in a flutter. it has two screens the first screen takes all the meeting details and the second screen is the meeting screen. The app has a picture in picture mode I turn off the pip mode.

When a meeting is ongoing I press the home button meeting is getting minimized (ongoing in the background) when I click on the app it does not take me back to the meeting instead it creates a new instance of the app on top of the background process this happens only the first time after installation on the app.

When I restart the app above issue is not anymore occurring (opening the app for a second time). for the second time When the app is minimized if I click on the app, it takes me back to the meeting.

Please help anyone know what is happing.

Picture in Picture is Disabled in the latest changes. still the same issue.

enter image description here

1

There are 1 answers

3
alireza daryani On

You must use Services for fix app in foreground for first step.

Then, You can set it to what happen when user click on picture, in this way u can manage call in background and also sent him back to call screen like open a notification.

Example :

you receive a notification from some app, when u click on it, u will go to page what developer want.

I hope you get it, update me in comments.