Details
Details
Make Tunnelbroker throw an error with an invalid device token, and test that a new token is uploaded (value in DDB changed). Additionally verified this using logs.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- final-stack-3
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
native/push/push-handler.react.js | ||
---|---|---|
445–459 | Nit: might be best to handle the simple case first and reduce indentation a bit if (!this.props.loggedIn) { return; } if (Platform.OS === 'android') { await this.ensureAndroidPushNotifsEnabled(); return; } if (Platform.OS !== 'ios') { // should not happen... we could consider an invariant here instead return; } let missingDeviceToken = !this.props.localToken; if (!missingDeviceToken) { for (const keyserverID in this.props.deviceTokens) { const deviceToken = this.props.deviceTokens[keyserverID]; if (deviceToken === null || deviceToken === undefined) { missingDeviceToken = true; break; } } } await requestIOSPushPermissions(missingDeviceToken); |