Gallagher Mobile Connect SDK
|
Public Member Functions | |
NotificationsConfiguration ( @Nullable String unlockNotificationChannelId, @Nullable PendingIntent unlockNotificationIntent, @Nullable String bleForegroundServiceNotificationChannelId, @Nullable PendingIntent bleForegroundServiceNotificationIntent) | |
NotificationsConfiguration ( @Nullable String unlockNotificationChannelId, @Nullable PendingIntent unlockNotificationIntent, @Nullable String bleForegroundServiceNotificationChannelId, @Nullable PendingIntent bleForegroundServiceNotificationIntent, @Nullable String pushNotificationsChannelId) | |
String | getUnlockNotificationChannelId () |
PendingIntent | getUnlockNotificationIntent () |
String | getBleForegroundServiceNotificationChannelId () |
PendingIntent | getBleForegroundServiceNotificationIntent () |
String | getPushNotificationsChannelId () |
Allows you to configure Notifications within the Mobile Connect SDK. There are two different kinds of notifications that are used by the SDK.
Firstly, the "unlock notification": If
Then the SDK knows that it will need to prompt for a PIN or Fingerprint, however it also knows that this will fail as we cannot prompt when we are offscreen. Instead of connecting to the reader, the SDK will instead show a notification, telling the user to please open the host app.
Secondly, the "foreground service notification": If you configure the SDK to use Bluetooth in the background, then Android requires the app to display a persistent notification that informs the user the app is running and consuming resources. For more information, see https://developer.android.com/about/versions/oreo/background
com.gallagher.security.mobileaccess.NotificationsConfiguration.NotificationsConfiguration | ( | @Nullable String | unlockNotificationChannelId, |
@Nullable PendingIntent | unlockNotificationIntent, | ||
@Nullable String | bleForegroundServiceNotificationChannelId, | ||
@Nullable PendingIntent | bleForegroundServiceNotificationIntent | ||
) |
Initialize the notifications configuration
unlockNotificationChannelId |
unlockNotificationIntent |
bleForegroundServiceNotificationChannelId |
bleForegroundServiceNotificationIntent |
com.gallagher.security.mobileaccess.NotificationsConfiguration.NotificationsConfiguration | ( | @Nullable String | unlockNotificationChannelId, |
@Nullable PendingIntent | unlockNotificationIntent, | ||
@Nullable String | bleForegroundServiceNotificationChannelId, | ||
@Nullable PendingIntent | bleForegroundServiceNotificationIntent, | ||
@Nullable String | pushNotificationsChannelId | ||
) |
String com.gallagher.security.mobileaccess.NotificationsConfiguration.getBleForegroundServiceNotificationChannelId | ( | ) |
Note: NFC will still work in the background even without the notification
PendingIntent com.gallagher.security.mobileaccess.NotificationsConfiguration.getBleForegroundServiceNotificationIntent | ( | ) |
String com.gallagher.security.mobileaccess.NotificationsConfiguration.getPushNotificationsChannelId | ( | ) |
String com.gallagher.security.mobileaccess.NotificationsConfiguration.getUnlockNotificationChannelId | ( | ) |
PendingIntent com.gallagher.security.mobileaccess.NotificationsConfiguration.getUnlockNotificationIntent | ( | ) |