question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TooManyProviderTokenUpdates issue on v0.15.1

See original GitHub issue

Currently we use pushy v0.15.1 for our APNS push notification in a enterprise application and receive “TooManyProviderTokenUpdates” sporadically when sent a push notification to apns using .p8 file.

Below is the code to instance the ApnsClient

	private synchronized void activateApnsClient(final ConfigData activeConfigData) throws SSLException {
		if (activeConfigData != loadedConfigData) {
			closeApnsClient();
			loadedConfigData = activeConfigData;
			apnsClient = new ApnsClientBuilder()
					.setApnsServer(activeConfigData.getApnsHostName(), activeConfigData.getApnsServerport())
					.setSigningKey(activeConfigData.getApnsSigningKey())
					.setConnectionTimeout(Duration.ofSeconds(activeConfigData.getApnsConnectionTimeout(), 0))
					.setTrustedServerCertificateChain(activeConfigData.getTrustedServerCertFile())
					.build();
		}
	}

where ApnsClientBuilder.PRODUCTION_APNS_HOST and 2197 are used as Hostname and port for ApnsServer. Connection timeout is set to 5sec.

The ApnsClient will be closed and reinstantiated, when the configuration data are changed, what but seldom happens.

In our application the above code and pushy v0.14.2 are used untill 23. nov. 2021without any problem. On 24. nov. 2021 we upgraded pushy to v0.15.1using netty 4.1.69 (see #922 ). Since that time we get the response with “TooManyProviderTokenUpdates” sometimes.

Any reply is appreciated. Thanks very much.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
jchamberscommented, Jan 20, 2022

Can I donate this project?

I think you just did, friend 😉

To answer more directly, I’m not currently accepting monetary donations, but sincerely appreciate the gesture all the same.

2reactions
kicktippcommented, Jan 20, 2022

I am glad to help. BTW: Can I donate this project?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Releases · jchambers/pushy - GitHub
Pushy v0.14.2 - bug fixes and more logging. This is a maintenance release that fixes a few small issues and adds some new...
Read more >
apns response TooManyProviderTokenUpdates
I believe the answer provided by LazyInstantiation is incorrect and they are conflating DeviceTokens (unique token that identifies an app on a specific...
Read more >
Error TooManyProviderTokenUpdates starts coming from APNS
We are facing TooManyProviderTokenUpdates error very frequently while sending normal and silent push notification ... Improve this question.
Read more >
iOS 15.1 Very Important Big Update | Major issues solved
Fix iOS 15 Issues by Yourself, No Skill Required! Try here: https://bit.ly/3iZPmJ7Use the coupon code to get 30% discount right now: ...
Read more >
Jchambers Pushy Statistics & Issues - Codesti
Issue Title State Comments Created Date Updated... APNS Connection Issue: Unable to resolve host closed 4 2022‑11‑27 2022‑11... Pushy fails on Mac OS recent releases...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found