Agora not initialising on Flutter Web (TargetPlatform Error)
Hi, I am using this plugin on Flutter web. I am using agora_rtc_engine: ^4.1.0-alpha.2 and I also have AgoraRtcWrapper.bundle.js file in script tag. When I initialise SDK I get this error message on UI :
TargetPlatform.macOS is not yet supported by the plugin

And in the logs I get this exception:
MissingPluginException(No implementation found for method create on channel agora_rtc_engine)____../dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 236:49 throw
../packages/flutter/src/services/platform_channel.dart 156:7 _invokeMethod
../dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50
Here's my code for the initialisation:
_engine = await RtcEngine.createWithContext(
RtcEngineContext(agoraDetailsModel.appId));
await _engine.enableVideo();
await _engine.startPreview();
await _engine.setChannelProfile(ChannelProfile.LiveBroadcasting);
await _engine.setClientRole(ClientRole.Broadcaster);
await window.navigator.getUserMedia(audio: true, video: true);
await _engine.joinChannel(
agoraDetailsModel?.token,
agoraDetailsModel?.channelName,
null,
0,
);
I'm not sure if Im missing something why is it not working on flutter web.
pls follow the branch dev/flutter2
@LichKing-2234 I have, I added all steps necessary for web but still I'm getting not supported on macOS. I'm running this on Chrome
@LichKing-2234 I might be using wrong sdk version. Could you let me know what pre release version corresponds to dev/flutter2 branch please? I tried agora_rtc_engine: ^4.1.0-alpha.2 and agora_rtc_engine: ^4.2.0-rc.2 both didn't work
get our SDK by github, not the pub.dev
The web support for agora_rtc_engine 6.x has landed in the main branch, If you still face issues, please try the latest code in main branch to see if it works or not.
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.