Git Product home page Git Product logo

Comments (5)

monnand avatar monnand commented on May 24, 2024

Thank you for your report! It is very helpful. I think that using device id an a unique identifier is really a bad choice. However, since this is designed by Apple, we have to cope with it.

Does this mean that a deivce's id is not changed even after an upgrade? In this case, we need to store a timestamp for each delivery point and for every push request. Although I feel there may still be some race conditions, but it might not be very easy to produce. Let me work on a fix next week.

from uniqush-push.

Uscher1 avatar Uscher1 commented on May 24, 2024

Yes, that's what I observed on the devices I tested. After an upgrade the token is invalidated on APNS side. The app has to register on first start and gets the same token valid again. In addition the APNS errors are delayed. This strange Apple design makes a proper usage unnecessary complicated.

from uniqush-push.

mishan avatar mishan commented on May 24, 2024

While I'm looking at what we can do to fix apns.go, this option is looking most appealing as gcm.go seems to work extremely well under full production load delivering millions of pushes a day.

https://cloud.google.com/solutions/mobile/ios-push-notifications/

from uniqush-push.

asifnoor avatar asifnoor commented on May 24, 2024

Is this fixed? I still see this issue happening

from uniqush-push.

TysonAndre avatar TysonAndre commented on May 24, 2024
  1. Is this specific to the upgrade to iOS 8? If so, this will be really infrequent after 11 years(iOS 11)
  2. If this is related to one token being invalid causing other tokens to be invalidated, I haven't noticed that before. It'd be useful if I had something that I could reproduce with https://github.com/uniqush/apns-simulator , but apns-simulator isn't configured for complex simulations right now. (may need to be updated)
  3. device token may change (think that "device id" in earlier conversation really was referring to "device token")

Switching to APNS HTTP2 instead may be useful: See #157 and the PR implementing HTTP2

from uniqush-push.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.