Skip to content

Commit 237e80b

Browse files
authored
Merge pull request #1484 from RoboSats/disable-android-notifications
fix notification not raising on first run
2 parents cf6aacb + 9625ea9 commit 237e80b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mobile/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const App = () => {
9797
SystemModule.useProxy(useProxy ?? 'true');
9898
});
9999
loadCookie('settings_stop_notifications').then((stopNotifications) => {
100-
SystemModule.stopNotifications(stopNotifications ?? 'true');
100+
SystemModule.stopNotifications(stopNotifications ?? 'false');
101101
});
102102
loadCookie('garage_slots').then((slots) => {
103103
NotificationsModule.monitorOrders(slots ?? '{}');

mobile/android/app/src/main/java/com/robosats/MainActivity.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected void onCreate(Bundle savedInstanceState) {
3333
SharedPreferences sharedPreferences =
3434
getApplicationContext()
3535
.getSharedPreferences(PREFS_NAME, ReactApplicationContext.MODE_PRIVATE);
36-
String stop_notifications =sharedPreferences.getString(KEY_DATA, "false");
36+
String stop_notifications = sharedPreferences.getString(KEY_DATA, "false");
3737
if (!Boolean.parseBoolean(stop_notifications)) {
3838
Intent serviceIntent = new Intent(getApplicationContext(), NotificationsService.class);
3939
getApplicationContext().startService(serviceIntent);
@@ -92,7 +92,7 @@ public void onRequestPermissionsResult(int requestCode, String[] permissions, in
9292
SharedPreferences sharedPreferences =
9393
getApplicationContext()
9494
.getSharedPreferences(PREFS_NAME, ReactApplicationContext.MODE_PRIVATE);
95-
String stop_notifications =sharedPreferences.getString(KEY_DATA, "false");
95+
String stop_notifications = sharedPreferences.getString(KEY_DATA, "false");
9696
if (!Boolean.parseBoolean(stop_notifications)) {
9797
Intent serviceIntent = new Intent(getApplicationContext(), NotificationsService.class);
9898
getApplicationContext().startService(serviceIntent);

0 commit comments

Comments
 (0)