diff --git a/apps/mobile/app/services/background-sync.ts b/apps/mobile/app/services/background-sync.ts
index cc9703177..f1cbc5647 100644
--- a/apps/mobile/app/services/background-sync.ts
+++ b/apps/mobile/app/services/background-sync.ts
@@ -113,7 +113,10 @@ async function onBackgroundSyncStarted() {
useUserStore.getState().setSyncing(false);
}
await Notifications.setupReminders();
-
+ if (SettingsService.get().notifNotes) {
+ Notifications.pinQuickNote(false);
+ }
+ Notifications.restorePinnedNotes();
NotePreviewWidget.updateNotes();
deleteDCacheFiles();
DatabaseLogger.info("BACKGROUND SYNC COMPLETE");
@@ -142,6 +145,7 @@ const onBoot = async () => {
Notifications.pinQuickNote(false);
}
Notifications.restorePinnedNotes();
+ NotePreviewWidget.updateNotes();
DatabaseLogger.info("BOOT TASK COMPLETE");
} catch (e) {
DatabaseLogger.error(e as Error);
diff --git a/apps/mobile/native/android/app/src/main/AndroidManifest.xml b/apps/mobile/native/android/app/src/main/AndroidManifest.xml
index 9326d6996..920363b81 100644
--- a/apps/mobile/native/android/app/src/main/AndroidManifest.xml
+++ b/apps/mobile/native/android/app/src/main/AndroidManifest.xml
@@ -11,57 +11,69 @@
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
+ android:theme="@style/BootTheme">
+
+
@@ -71,7 +83,10 @@
android:resource="@xml/new_note_widget_info" />
-
+
"
@@ -81,7 +96,10 @@
android:resource="@xml/note_widget_info" />
-
+
@@ -90,33 +108,37 @@
android:resource="@xml/widget_reminders_info" />
-
+ android:windowSoftInputMode="adjustResize">
-
+
-
+
+
+
@@ -127,6 +149,7 @@
+
@@ -134,22 +157,25 @@
-
+
+ android:theme="@style/AppThemeB"
+ android:windowSoftInputMode="adjustResize">
+
@@ -160,6 +186,7 @@
+
@@ -179,35 +206,41 @@
android:enabled="true"
android:exported="true"
android:stopWithTask="false" />
-
+
-
+
+
+
-
+
-
+
-
-
+ android:name="androidx.core.content.FileProvider"
+ android:authorities="${applicationId}.provider"
+ android:exported="false"
+ android:grantUriPermissions="true">
+
+
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/BootTaskService.java b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/BootTaskService.java
index 1807d0c2c..cc5f904b8 100644
--- a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/BootTaskService.java
+++ b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/BootTaskService.java
@@ -39,7 +39,6 @@ public class BootTaskService extends HeadlessJsTaskService {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
-
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
NotificationChannel channel = new NotificationChannel("com.streetwriters.notesnook",
"Default",
@@ -55,7 +54,7 @@ public class BootTaskService extends HeadlessJsTaskService {
this.startForeground(
1,
notification,
- ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC);
+ ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE);
} else {
this.startForeground(
1,