RocketChat / RocketChat/Rocket.Chat
Mobile Push Notifications: send to unknown device
@rodrigok is already working on this.
Since May 5, 2017.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Rocket.Chat Version: 0.55.1
Running Instances: 1
DB Replicaset OpLog: Enabled
Node Version: 4.8.1 - x64
Users ~20
Push Notifications: by Gateway https://gateway.rocket.chat
Hello,
I have problems with my mobile push notifications. I recieve them only sporadically. Also my users reported problem to me, not recieving notifications with newly installed apps.
I tested different devices and also saw some inconsitencies of the mobile push notifications. Only desktop notifications had no problems. Later I uninstalled all apps to have a clean status. But one device remained and I dont know how to remove it. Here you have some logs.
Configuration
Push: configuring...
Push.Configure { sendTimeout: 60000, apn: undefined, gcm: undefined, production: true, sendInterval: 1000, sendBatchSize: 10 }
Push: Send worker started, using interval: 1000
...
Push: Settings userId "y6q3zXXXXXXXXX" for app: FjfXXXXXXXX
Push: Got push token from app: { id: 'FjfXXXXXXXX ', token: { gcm: 'c_3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' }, appName: 'main', userId: 'y6q3zXXXXXXXXX', metadata: {} }
Push: updated { _id: 'FjfXXXXXXXX ', token: { gcm: 'c_3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' }, appName: 'main', userId: 'y6q3zXXXXXXXXX', enabled: true, createdAt: ..., updatedAt: ... }
I did some test pushes. The app was uninstalled and the token was deleted. But one token remained.
Push: send message "@sscholl" via query { userId: 'y6q3zXXXXXXXXX' }
Push: send to token { gcm: 'dudcB_MOnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' }
Push: send to token { gcm: 'c_3QXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' }
...
removing push token c_3QXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
...
send to token { gcm: 'dudcB_MOnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' }
Are Chrome Notifications also appear in this context? That could be, that this is the chrome notification.
Do you see general problem with my configuration?
Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.