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

Request queued messages from APNs #27

Open
Spidy123222 opened this issue Sep 19, 2023 · 5 comments
Open

Request queued messages from APNs #27

Spidy123222 opened this issue Sep 19, 2023 · 5 comments
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers

Comments

@Spidy123222
Copy link

On iOS it currently receives missed messages on boot if device was turned off for multiple hours of time and starting up it takes a bit of time but it receives messages that were missed. This would be very useful for locally ran stuff like inside of a app or executable where it might not always be active and someone could message during that time.

@topiga
Copy link

topiga commented Sep 19, 2023

Yeah but no, this feature requires iCloud history ^^

@TaeHagen
Copy link

IIRC even a real Mac doesn't catch up on missed messages (i know some messages i've sent have gone missing when the mac was offline for large periods of time). I know APNs will redeliver missed messages, but after a while it throws them away (not sure how long?). I think iCloud sync is used for that on real iDevices to fill in those gaps, which we haven't implemented.

@sumnerevans
Copy link

When you connect and there's stuff in the APNs queue, you will receive a message with command=160. It means that you need to ask for APNs to send you the queue. The way to do this is to send back a command=160 message and it will send you everything you missed.

@TaeHagen
Copy link

Huh, I never did that and apns still seems to redeliver everything for me anyways. Tho it does it multiple times, maybe i need to send the 160?

@sumnerevans
Copy link

It seems to send it randomly, but you can request it with 160.

@JJTech0130 JJTech0130 changed the title Receive messages when pypush was offline Request queued messages from APNs Oct 2, 2023
@JJTech0130 JJTech0130 added bug Something isn't working enhancement New feature or request good first issue Good for newcomers labels Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants