simon123 avatar image
simon123 asked raghavslk commented

App Notifications not receving on genymotion emulator

I am unable to receive app notifications in emulator
I've used this tutorial to set up clover in genymotion

On App Side I have this code which is listening for notifications

public class OrderNotificationListener extends AppNotificationReceiver {
    public final static String TEST_NOTIFICATION_ACTION = "printOrder";

    public void onReceive(Context context, AppNotification notification) {
        try {
            if (notification.appEvent.equalsIgnoreCase(TEST_NOTIFICATION_ACTION)) {
                Log.d("MyApp", "Intent received NOTIFICATION " + notification.payload);
                Intent intent = new Intent(context, PrintOrderService.class);
                intent.putExtra(PrintOrderService.K_ORDER_ID, notification.payload);
        } catch (Exception e) {
            Log.d(OrderNotificationListener.class.getSimpleName(), e.getMessage());

Even registered in manifest

        <action android:name="">

I am using this URL to send notifications , response is successful as it returns {}{aId}/merchants/{mId}/notifications

No error log is generating so not sure what is the issue.

OrdersClover Android SDK
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

David Marginian avatar image
David Marginian Deactivated answered raghavslk commented

How are you installing the app? Have you followed the instructions here: You also may want to take a look at which I updated recently.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

simon123 avatar image simon123 commented ·

No I have not added signed apk to sandbox account , I was directly running from android studio. I'll try steps from mentioned link.

0 Likes 0 ·
simon123 avatar image simon123 commented ·

Thank you ! Notifications are working after uploading signed apk to dev account . I hope there is a better way.

0 Likes 0 ·
raghavslk avatar image raghavslk simon123 commented ·

Once it is installed for the first time uploading to dev account, subsequent updates can be done directly within Android studio and emulator picks updates immediately.

0 Likes 0 ·

Welcome to the
Clover Developer Community