Flutter FAQs



The demo is running on two mobile phones, but why can't they display the images of each other?

Make sure that the two mobile phones use different UserIDs. With TRTC, you cannot use the same UserID on two devices simultaneously unless the SDKAppIDs are different.


What firewall restrictions does TRTC face?

The SDK uses the UDP protocol for audio/video transmission and therefore cannot be used in office networks that block UDP. If you encounter such a problem, see How to Deal with Firewall Restrictions to troubleshoot the issue.


What should I do if the iOS app crashes when I build and run it?

Check if it is caused by the debug mode issue on iOS 14 and above. For details, see this Flutter document.


What should I do if videos do not show on iOS but do on Android?

Make sure that in info.plist of your project, the value of io.flutter.embedded_views_preview is YES.


What should I do if an error occurs when I run CocoaPods for my iOS project after updating to the latest version of the SDK?

1. Delete Podfile.lock in the iOS directory.
2. Run pod repo update.
3. Run pod install.
4. Run CocoaPods again.


What should I do if Android Studio fails to build my project with the error “Manifest merge failed”?

1. Open /example/android/app/src/main/AndroidManifest.xml.
2. Add xmlns:tools="http://schemas.android.com/tools" to manifest.
3. Add tools:replace="android:label" to application.

img




What should I do if an error occurs due to the absence of signatures when I debug my project on a real device?

If the error message is as shown below:


1. Purchase an Apple certificate and you will be able to debug on a real device after configuration and signing.
2. Configure in target > signing & capabilities after purchase.


Why can’t I find the corresponding file after deleting/adding content in the swift file of the plugin?

In the directory of your main project, run pod install in the folder of /ios.


What should I do if the error “Info.plist, error: No value at that key path or invalid key path: NSBonjourServices” occurs when I run my project?

Run flutter clean and run the project again.


What should I do if an error occurs when I run pod install?

If the error message is as shown below:

According to the message, the error is caused by the absence of generated.xconfig, and to fix the problem, you need to run flutter pub get.
explain
This problem occurs after compilation with Flutter. You won’t run into the problem if you have a new project or have run flutter clean.


What should I do if a dependency error occurs when I run my project on iOS?

If the error message is as shown below:

The error may occur because the pods target version fails to meet the requirements of the plugin being depended on. You need to change the target in the pods in question to the specified version.


Does Flutter support custom capturing or rendering?

No, it doesn’t for the time being. For more information on platforms that support custom capturing and rendering, please see Custom Capturing and Rendering > Supported Platforms.


Upgrade from a version below 1.8.0 to a version 1.8.0 and above, resulting in a compilation error or unable to load the page problem fix?

If you are upgrading from below 1.8.0 to 1.8.0 and above, you need to check whether the following steps are normal.
Add navigatorObservers to MateriaApp. The purpose is to navigate to a TUICallKit page when a call invitation is received. The sample code is as follows:
import 'package:tencent_calls_uikit/tuicall_kit.dart';

MaterialApp(
     navigatorObservers:[TUICallKit.navigatorObserver],
     ...
The imported files in the tencent_calls_engine plugin are uniformly replaced with new ones
import 'package:tencent_calls_engine/tuicall_engine.dart';
import 'package:tencent_calls_engine/tuicall_observer.dart';
import 'package:tencent_calls_engine/tuicall_define.dart';
Replace with:
import 'package:tencent_calls_engine/tencent_calls_engine.dart';
The login API adjustment is more standardized, no need to specify parameters
Future<TUIResult> login(int sdkAppId, String userId, String userSig)
Offline push parameter construction optimization