Closed ALI-SAMPSON closed 11 months ago
The plugin only delegates to Android's sendUssdRequest
method, so if you get that error back, it's because Android returns that response.
It means the parameters you pass to UssdService.makeRequest
trigger that error. Maybe the subscriptionId
?
The plugin only delegates to Android's
sendUssdRequest
method, so if you get that error back, it's because Android returns that response. It means the parameters you pass toUssdService.makeRequest
trigger that error. Maybe thesubscriptionId
?
Well, I followed their documentation and used a subscription Id of 1 but I still get that same error.
their documentation
not sure whose documentation you're referring to.
Again, this plugin is only a wrapper, if you get this response back, it means your parameters are properly passed to Android, so the resolution to your issue doesn't depend on this Flutter plugin.
their documentation
not sure whose documentation you're referring to.
Again, this plugin is only a wrapper, if you get this response back, it means your parameters are properly passed to Android, so the resolution to your issue doesn't depend on this Flutter plugin.
I meant the ussd_service
plugin on pub.dev
.
Ok, thank you, sir, but what would you suggest I do?
Do you have a dual sim phone? if yes, make sure the code is executing on the right sim card?
You can also try with another more common USSD code to see if it works.
Do you have a dual sim phone? if yes, make sure the code is executing on the right sim card?
Yes, I use a dual sim phone and I am executing it on the first sim, sim one.
You can also try with another more common USSD code to see if it works.
Great, I'll try that and let you know, but in the meantime, I want to know if I can pass a JSON body to the plugin to execute alongside the ussd code
I send.
I created a prototype to test out how the ussd_service works but it keeps throwing an error: PlatformException(ussd_plugin_ussd_execution_failure, USSD_RETURN_FAILURE, null, null)