()
| 632 | }; |
| 633 | |
| 634 | showNotifAlertOnAndroid() { |
| 635 | const alertInfo = this.props.notifPermissionAlertInfo; |
| 636 | if (shouldSkipPushPermissionAlert(alertInfo)) { |
| 637 | return; |
| 638 | } |
| 639 | |
| 640 | const payload: RecordAlertActionPayload = { |
| 641 | alertType: alertTypes.NOTIF_PERMISSION, |
| 642 | time: Date.now(), |
| 643 | }; |
| 644 | |
| 645 | this.props.dispatch({ |
| 646 | type: recordAlertActionType, |
| 647 | payload, |
| 648 | }); |
| 649 | |
| 650 | Alert.alert( |
| 651 | 'Unable to initialize notifs!', |
| 652 | 'Please check your network connection, make sure Google Play ' + |
| 653 | 'services are installed and enabled, and confirm that your Google ' + |
| 654 | 'Play credentials are valid in the Google Play Store.', |
| 655 | undefined, |
| 656 | { cancelable: true }, |
| 657 | ); |
| 658 | } |
| 659 | |
| 660 | navigateToThread(threadInfo: ThreadInfo, clearChatRoutes: boolean) { |
| 661 | if (clearChatRoutes) { |
no test coverage detected