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();
}
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;
}
Aggregations