Flutter - "Safari cannot open the page because the address is invalid"

Viewed 310

I am trying to open the telegram URL and it's content but I am getting this error message - "safari cannot open the page because the address is invalid"

URL I am trying to access: https://t.me/CoinDCX_Go_Announcements When I click VIEW IN TELEGRAM, I am getting a popup with the above error message. What could be the issue with this url ?

I am using the url launcher plugin to launch this url.

enter image description here

This is the URL launcher code. But seems like this is telegram share link issue.

static launchUrl({String url, BuildContext context}) async {
    if (await canLaunch(url)) {
      await launch(url,);
    } else {
     print('there is some issue');
    }
  }
0 Answers
Related