Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LP Android SDK supports local notifications ? Unable to get the unread message count in BroadcastReceiver, unable to get the badge count and no notification UI shown. #158

Open
SanjanaTailor opened this issue Oct 25, 2024 · 1 comment

Comments

@SanjanaTailor
Copy link

No description provided.

@SanjanaTailor SanjanaTailor changed the title LP Android SDK supports local notifications ? Unable to get the LP Android SDK supports local notifications ? Unable to get the unread message count in BroadcastReceiver, unable to get the badge count and no notification UI shown. Oct 25, 2024
@SanjanaTailor
Copy link
Author

Hi team,

downloaded the sample SDK. On Intro Activity, entered the Account ID and click on Messaging. on Messaging Activity, entered the JWT token and Open Activity.

On chat window, entered the message and before chat get initiated clicked on back button.
In Messaging Activity, onResume method always called and get the unread_message_count.

Unfortunately, not receiving the below logs

IntentFilter unreadMessagesCounterFilter = new IntentFilter(LivePerson.ACTION_LP_UPDATE_NUM_UNREAD_MESSAGES_ACTION);
	BroadcastReceiver unreadMessagesCounter = new BroadcastReceiver() {
		@Override
		public void onReceive(Context context, Intent intent) {
			int newValue = intent.getIntExtra(LivePerson.ACTION_LP_UPDATE_NUM_UNREAD_MESSAGES_EXTRA, 0);
			Log.d(TAG, "Got new value for unread messages counter: " + newValue);
			updateToolBar(newValue);
		}
	};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant