voximplant / flutter_voximplant

Voximplant Flutter SDK
MIT License
9 stars 7 forks source link

Cannot handle efficiently a background call on Android #46

Open henriquetroiano opened 1 year ago

henriquetroiano commented 1 year ago

Hello, @YuliaGrigorieva

I'm trying to receive a call in background. Then, when I receive a call push on Android, I set on sharedPreferences to autoAccept a call, then I save the push on sharedPreferences, and the app opens. When opened, I check if I need to accept a call, then I log--in to voxImplant, then I handle the push received in background, so the call comes and I auto-accept it. The problem: image The callId that comes with the push notification is NOT the same as the real call. By not knowing how is the real ID, the app could auto accept an incorrect call. How can I get the REAL call ID ?