iamSahdeep / seo_renderer

A Flutter Web Plugin to display Text Widget as Html for SEO purpose
MIT License
114 stars 15 forks source link

Can not detect GoogleBot userAgent in Network Condition and refresh the page to see created Div Elements. #24

Closed 35c0b4r closed 2 years ago

35c0b4r commented 2 years ago

I'm wrapping my MaterialApp with RobotDetector and Text widgets with TextRenderer. But when I Inspect Elements with GoogleBot userAgent, there is no extra html div's created by [seo_renderer] which google's bot gonna detect.

Which is mentioned in your app .

35c0b4r commented 2 years ago

This issue was caused by wrong widget imports. We must import seo_renderer.dart instead of text_renderer_style.dart and text_renderer_vm.dart

ljmatan commented 2 years ago

For me, I've noticed that window.navigator.userAgent from dart:html library still returns the original user agent even though I've used this extension for chrome which seems to work just fine on other sites.