A cordova plugin to handle USSD menus options.
cordova plugin add https://github.com/chogis/SessionUSSD2.git
<!-- USE HERE -->
<service android:name="com.ramymokako.plugin.ussd.android.USSDService" android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService" />
</intent-filter>
<meta-data android:name="android.accessibilityservice" android:resource="@xml/ussd_service" />
</service>
<!-- END HERE -->
<!-- USE HERE -->
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<!-- END HERE -->
const ussdMenuString = "*105#,1,2,3,4"
try {
const menuResponses = await window.plugins.voIpUSSD.show(ussdMenuString)
} catch (error) {
console.log(error)
}
- Chogis Cho
- Romell Domínguez - VoIpUSSD
- Ramy Mokako - VoIpUSSD cordova plugin