EddieKamau / ussd_advanced

Run ussd code directly in your application
MIT License
15 stars 29 forks source link

sendAdvancedUssd always throw "Unhandled Exception: PlatformException(ussd_plugin_ussd_execution_failure, USSD_RETURN_FAILURE, null, null)" #4

Open blackbusters opened 2 years ago

blackbusters commented 2 years ago

Hi..

I tried using sendAdvancedUssd with this code : SimData simData = await SimDataPlugin.getSimData(); for (var s in simData.cards) { var str = await UssdAdvanced.sendAdvancedUssd(code: "*808#", subscriptionId: s.subscriptionId); print(str); }

but it always throw me an error : E/flutter (19903): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(ussd_plugin_ussd_execution_failure, USSD_RETURN_FAILURE, null, null) E/flutter (19903): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:589) E/flutter (19903): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167) E/flutter (19903): E/flutter (19903): #2 Future.timeout. (dart:async/future_impl.dart:873) E/flutter (19903): E/flutter (19903): #3 UssdAdvanced.sendAdvancedUssd (package:ussd_advanced/ussd_advanced.dart:18) E/flutter (19903):

Currently I'm using Flutter 2.8.1 and targeting android sdk 30.

Is there anything i can do to fix this?

ALI-SAMPSON commented 1 year ago

I'm facing the same issue here.

Zeeshan90 commented 1 year ago

I'm also facing the same issue.

sakib556 commented 1 year ago

I'm also facing the same issue.

tejas1106 commented 1 year ago

I'm also facing the same error. Any solution to this?

K0M4L commented 8 months ago

I'm also facing the same issue. Any solution?

pkitatta commented 7 months ago

Same problem with me.