Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

making calls with flutter USSD #1

Open
hssn-hassnain opened this issue Jun 2, 2020 · 5 comments
Open

making calls with flutter USSD #1

hssn-hassnain opened this issue Jun 2, 2020 · 5 comments

Comments

@hssn-hassnain
Copy link

hello, this plugin is and impressive work. I want to ask about call making in it for now yousing flutter_ussd i am able to dial a call also instead of ussd. i am making a default phone dialer app. can you help me that how i should make a call and what will be the permission needed for the call. since i am not able to work alot at the native side of android and my concern is to make a phone call through my app i am building.

@mandreshope
Copy link
Owner

mandreshope commented Jun 4, 2020

hello,
Look at this line of code
https://github.com/Mandreshope/flutter_ussd/blob/bd23d99791e0a58b561b4e0ef6db77087f27f6da/android/src/main/java/com/mandreshope/ussd/UssdPlugin.java#L141

and change it to
uriString += “tel:”+ussd
Uri.parse(Uri.encode(uriString)

I think it helped you, thanks

@iwacu
Copy link

iwacu commented Jun 24, 2020

Hello, i have a question ;how can we get a response after the ussd code executed?
it can be a message or something to let you know that the code was executed successfully,in order to proceed.
thnks

@mandreshope
Copy link
Owner

Hi,
the USSD package is simply to launch the ussd code directly on the application. We cannot have any data return.
If you have the competence to do this, you can contribute to the project.
If not, I advise you to use the USSD SERVICE package to do this.
Thank you so much.

@iwacu
Copy link

iwacu commented Jun 25, 2020

ok i will check it but the proble with ussd service it's silent , but i will see. thnks for the help

@mohmdezeldeen
Copy link

Hello, thanks for your efforts in this lib, but i ask you if you can support dual sim to select from before run ussd code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants