Creating an Android Intent plugin for Ionic Capacitor
We are developing an application in Ionic using Capacitor and Angular.
We need a custom plugin that we can use in the project.
The plugin is to open another installed SoftPOS application (via Android Intent) and listen on the callback.
Example of code in Java:
Intent payIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(
"paymentCard://pay/v1"
+ "?appId=com.example.myapp"
+ "&action=sale"
+ "&clientTransactionId=1234567801234"
+ "&amount=1200"
+ "&tipAmount=200"
+ "&callback=mycallbackscheme://result"));
payIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
payIntent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
startActivity(payIntent);
In addition, we can give access to a demo application written in Java that performs this very task. That is, de facto you need to transfer the code to a plugin to use it in Ionic
Please ask for a quote