Search in sources :

Example 1 with PushMessageHandler

use of org.infobip.mobile.messaging.geo.push.PushMessageHandler in project mobile-messaging-sdk-android by infobip.

the class MobileMessageHandlerTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    enableMessageStoreForReceivedMessages();
    PreferenceHelper.saveBoolean(context, MobileMessagingProperty.PUSH_REGISTRATION_ENABLED, true);
    PreferenceHelper.saveBoolean(context, MobileMessagingProperty.GEOFENCING_ACTIVATED, true);
    mobileMessageHandler = new MobileMessageHandler(mobileMessagingCore, coreBroadcaster, notificationHandler, mobileMessagingCore.getMessageStoreWrapper());
    pushMessageHandler = new PushMessageHandler();
    commonStore = mobileMessaging.getMessageStore();
}
Also used : MobileMessageHandler(org.infobip.mobile.messaging.gcm.MobileMessageHandler) PushMessageHandler(org.infobip.mobile.messaging.geo.push.PushMessageHandler)

Example 2 with PushMessageHandler

use of org.infobip.mobile.messaging.geo.push.PushMessageHandler in project mobile-messaging-sdk-android by infobip.

the class MobileGeoImpl method handleMessage.

@Override
public boolean handleMessage(Message message) {
    if (!hasGeo(message)) {
        return false;
    }
    PushMessageHandler pushMessageHandler = new PushMessageHandler();
    pushMessageHandler.handleGeoMessage(context, message);
    return true;
}
Also used : PushMessageHandler(org.infobip.mobile.messaging.geo.push.PushMessageHandler)

Aggregations

PushMessageHandler (org.infobip.mobile.messaging.geo.push.PushMessageHandler)2 MobileMessageHandler (org.infobip.mobile.messaging.gcm.MobileMessageHandler)1