AgoraIO-Extensions / AgoraIO-Extensions/Agora-Flutter-SDK

MissingPluginException: getNativeViewPtr on agora_rtc_ng/AgoraSurfaceView_x using agora_rtc_engine v6.2.1 on iOS device (Flutter 3.32.1, Xcode 16.4)

Đang mở
#2,330 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Dart
Star
795
Fork
448
Merge trung bình
12 giờ 19 phút
Pull request đã merge (30 ngày)
14

Mô tả

📦 Plugin Details
Plugin: agora_rtc_engine: ^6.2.1

Flutter: 3.32.1 (stable)

Dart: 3.8.1

Xcode: 16.4

Platform: iOS (physical device, not simulator)

✅ Tried Solutions
Verified that I'm not using the simulator.

Called await _engine.initialize(...) before using AgoraVideoView.

Used createAgoraRtcEngine() correctly and registered event handlers.

Ensured camera/mic permissions are granted.

Wrapped the view rendering inside a check (_engine != null or _isEngineReady).

Cleaned, rebuilt, and reinstalled the app.

Tried downgrading Agora SDK but got App Store validation errors (bitcode-related).

flutter doctor shows no issues.

🧪 Repro Steps
Create a basic Flutter app.

Integrate agora_rtc_engine with version 6.2.1.

Follow setup to join a channel and render local/remote video.

Run on a physical iOS device.

Observe that AgoraVideoView fails and throws MissingPluginException.

🙏 Request
Please advise on how to fix or properly initialize the plugin to avoid this issue. If it’s a known issue, could you provide a workaround or a confirmed compatible version of agora_rtc_engine with Xcode 16+ and Flutter 3.32?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.