use of org.infobip.mobile.messaging.geo.geofencing.GeofencingHelper in project mobile-messaging-sdk-android by infobip.
the class BootReceiver method onReceive.
@Override
public void onReceive(Context context, Intent intent) {
if (!Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
return;
}
MobileMessagingLogger.i("Received boot completed intent");
GeofencingHelper geofencingHelper = new GeofencingHelper(context);
geofencingHelper.handleBootCompleted();
}
use of org.infobip.mobile.messaging.geo.geofencing.GeofencingHelper in project mobile-messaging-sdk-android by infobip.
the class MessageStoreTest method test_shouldUseGeoSqlStoreForGeo_whenConfiguredWithMessageStore.
@Test
public void test_shouldUseGeoSqlStoreForGeo_whenConfiguredWithMessageStore() {
MobileMessagingCore.setMessageStoreClass(context, TestMessageStore.class);
assertTrue(new GeofencingHelper(context).getMessageStoreForGeo() instanceof GeoSQLiteMessageStore);
}
use of org.infobip.mobile.messaging.geo.geofencing.GeofencingHelper in project mobile-messaging-sdk-android by infobip.
the class GeoAreasHandlerTests method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
enableMessageStoreForReceivedMessages();
geoNotificationHelper = Mockito.mock(GeoNotificationHelper.class);
geoReporter = Mockito.mock(GeoReporter.class);
messageStore = Mockito.mock(MessageStore.class);
geoAreasHandler = new GeoAreasHandler(contextMock, mobileMessagingCore, geoNotificationHelper, geoReporter, new GeofencingHelper(context));
geoReportCaptor = ArgumentCaptor.forClass(GeoReport[].class);
geoNotificationCaptor = new ArgumentCaptor<>();
}
Aggregations