Mopinion-com / mopinion_flutter_integration_plugin

MIT License
1 stars 2 forks source link

Futures do not complete on Android #24

Closed adam-abbas closed 8 months ago

adam-abbas commented 8 months ago

After implementing the package inside our applications, we discovered an issue with Android. The Future object did not complete on all methods. This causes infinite awaiting. The reason for that was in the native code, the Result object was never returned. This is needed because after sending a platform message, Flutter awaits a result from the native platform. This was correctly implemented for iOS but not for Android. I also improved the error handling a bit with meaningful messages. Please take a look @ManuelCrovetto.