You can directly call native Android and iOS SDKs of Tokbox chat app from your Flutter application — wherein the UI will be driven by Tokbox SDKs. Since this approach uses native UIs of each platform, the app developer is devoid of any responsibility to create working UIs on both the Android and iOS platforms.
Read moreHow do you write a platform specific code in Flutter?
Writing custom platform-specific code
Read moreHow do you develop a platform channel in Flutter between Dart and native code Kotlin?
Now we will create a flutter app with a method call that will be implemented in Android (Java) and iOS (Objective C) respectively.
Read moreHow do you communicate with the native code in Flutter?
To send a message to native we use invokeMethod , as below. invokeMethod is an async method so we must add await and wrap the call inside an async (Future) method. If there is a result that’s sent back from native it will be assigned to the response variable.
Read more