I have only ever launched my activity full screen, but I'm fairly sure it is possible yes.
And I have a number of apps firing after payment is processed, so this bit is certainly possible.
<intent-filter>
<action android:name="com.clover.intent.action.PAYMENT_PROCESSED">
</action>
</intent-filter>
</receiver> This is my reciver class public class NotificationReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (action.equals(Intents.ACTION_PAYMENT_PROCESSED)) { String orderId = intent.getStringExtra(Intents.EXTRA_CLOVER_ORDER_ID); Toast.makeText(context,orderId,Toast.LENGTH_LONG).show(); } }
That looks spot on. And it should work in the emulator, yes. If you attach the debugger is your onReceive() code being hit?
Can you confirm you have your app's targetSdkVersion set to 25 or below?
Hey It worked... thanks man...but if it goes above 25 ..then how to implement that..Any solution...
You should have no need to go above 25. That is suitable for all existing Clover devices including the new Station and Mini.
Thanks @Lee Tickett.Now I haveclover mini device with me..How i can run my app in this device..Can i run directly as i do with mobile device..But here i dont have such port for this..Can u please suggest ..
could you accept the answer for this question and post a new question. maybe elaborate a little too, as i don't quite follow...
That is quite likely your problem. Make sure you set your targetSdkVersion to 25. Then give it another try.
3 People are following this question.