iOS- Adhoc Builds with Distribution Certification Push notification comes twice -


in ios application, have implemented push notification. working fine except time push comes twice.

i using adhoc builds distribution certificate. in back-end send request apns once. also, request apns production server calls

i have googled didn't find solution. can 1 confirm me if ios bug or not.

also, random behavior. 80% of time 2 notifications single event.

any appreciated

my guess have 2 different tokens registered same device, causes server send notification twice (one each token, resulting in 2 messages being sent same device).

push tokens don't change, can. can result of re-installing app, changes in operating system or other consideration not disclosed app's developers. why apple indicates need send updated version of token whenever app launched.

in case, it's possible token changed reason , though sending notification once each token, sending once each of 2 tokens representing device. explanation why you're receiving double messages 80% of time, in remaining 20%, messages sent close 1 operating system (or apple's servers) blocking them , sending one.

can case?


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -