Page MenuHomePhabricator

D3563.id11001.diff
No OneTemporary

D3563.id11001.diff

diff --git a/native/push/push-handler.react.js b/native/push/push-handler.react.js
--- a/native/push/push-handler.react.js
+++ b/native/push/push-handler.react.js
@@ -389,12 +389,12 @@
const deviceType = Platform.OS;
if (deviceType === 'ios') {
iosPushPermissionResponseReceived();
- if (__DEV__) {
- // iOS simulator can't handle notifs
- return;
- }
+ } else {
+ this.showNotifAlertOnAndroid();
}
+ };
+ showNotifAlertOnAndroid() {
const alertInfo = this.props.notifPermissionAlertInfo;
if (
(alertInfo.totalAlerts > 3 &&
@@ -411,24 +411,15 @@
payload: { time: Date.now() },
});
- if (deviceType === 'ios') {
- Alert.alert(
- 'Need notif permissions',
- 'Comm needs notification permissions to keep you in the loop! ' +
- 'Please enable in Settings App -> Notifications -> Comm.',
- [{ text: 'OK' }],
- );
- } else if (deviceType === 'android') {
- Alert.alert(
- 'Unable to initialize notifs!',
- 'Please check your network connection, make sure Google Play ' +
- 'services are installed and enabled, and confirm that your Google ' +
- 'Play credentials are valid in the Google Play Store.',
- undefined,
- { cancelable: true },
- );
- }
- };
+ Alert.alert(
+ 'Unable to initialize notifs!',
+ 'Please check your network connection, make sure Google Play ' +
+ 'services are installed and enabled, and confirm that your Google ' +
+ 'Play credentials are valid in the Google Play Store.',
+ undefined,
+ { cancelable: true },
+ );
+ }
navigateToThread(threadInfo: ThreadInfo, clearChatRoutes: boolean) {
if (clearChatRoutes) {

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 1, 11:07 AM (21 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2603770
Default Alt Text
D3563.id11001.diff (1 KB)

Event Timeline