flutterflutter-dependenciesflutter-plugin

Add # sign in tel uri using Url_launcher


In flutter app i am using Url_launcher dependency to open phone application with content to dial using following function Url_launcher.launch("tel:\*5*250#" ). It does open the application but # symbol is not dialed in there else everything works ok ... Any workaround to include # ???


Solution

  • I found this issue only on Android devices. It works on iOS.

    You need to use URL encoding for special character in a URL.

    So # equals %23

    This will work launch('tel:\*5*250\%23');

    This answer helped me.