Closed everfinal88 closed 7 months ago
@everfinal88 we will check this and we will fix this in future release.
@everfinal88 I managed to get rid of the error by using the "alternative" method # 2 described in the "Flutter Setup" plugin readme section and making sure that ensureInitialized is happening in the same zone as the newrelic startAgent() method call.
So basically
@asegurola Thanks, the error went away. I guess I missed the alternative method. Since @ndesai-newrelic said will update this in the future so I'm not sure I should close this issue or not.
I'll leave the "close" decision to him or any new relic dev. Thanks.
@everfinal88 Is the line "WidgetsFlutterBinding.ensureInitialized();" present in your main function? There is no need to include the line "WidgetsFlutterBinding.ensureInitialized();" in your main function because it is already handled and initialized within the New Relic Start function. Please refer this article for this error. Zone Mismatch Issue
Been getting this exception after adding new relic 1.0.4. After some research, it seem like the zone guard is deprecated starting with Flutter 3.10.
Here are some references :
So far, the app can still run properly but i'm not sure if this issue might get problematic in the future. I'm hoping I can get some answer or possible future update about this issue. Thanks.