Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
513 stars 197 forks source link

APN token lost in production. #288

Closed floor12 closed 7 years ago

floor12 commented 7 years ago

I have a very strange behaviour of push plugin. When server runs on the local host everything is fine: ios devices are registering with token and all run greats. But in production server (on galaxy cloud), when you are trying to send a notify, device apn token is removing from _raix_push_app_tokens collection and notify is not not sending.

When im restarting app on device, token updates in database again. 2017-04-01_11-22-07

Token presents. 2017-04-01_11-21-38

Sending one notify and token disappearing from db without any debug messages in console.

2017-04-01_11-22-27

It happens in production and dev modes only on remote production server.

floor12 commented 7 years ago

it was solved by meteor updating and synchronization of server and client version

floor12 commented 7 years ago

No... i cant understand whats is wrong 8( but tokens removed from database some times i see a "Got error code 8 for token ..."

floor12 commented 7 years ago

my fault. i have few instances running in the galaxy cloud. 8(

pptoan23 commented 7 years ago

I have same problem with GCM token. But I use Meteor 1.2 for production, I can't update Meteor version. Have you any solution without Meteor updating? @floor12 Thank you!

floor12 commented 7 years ago

@pptoan23 this was a stupid problem ) a few app instances was running in the same time and working with the same DB.

pptoan23 commented 7 years ago

@floor12 did you mean raix:push is not thread-safe? How did you fix your problem? I am using micro services and they are working with the same DB.