diff --git a/android/app/capacitor.build.gradle b/android/app/capacitor.build.gradle index ac381a7..42a50e1 100644 --- a/android/app/capacitor.build.gradle +++ b/android/app/capacitor.build.gradle @@ -9,6 +9,7 @@ android { apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle" dependencies { + implementation project(':capacitor-local-notifications') implementation project(':capacitor-preferences') } diff --git a/android/capacitor.settings.gradle b/android/capacitor.settings.gradle index a1c665a..c7d86fc 100644 --- a/android/capacitor.settings.gradle +++ b/android/capacitor.settings.gradle @@ -2,5 +2,8 @@ include ':capacitor-android' project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor') +include ':capacitor-local-notifications' +project(':capacitor-local-notifications').projectDir = new File('../node_modules/@capacitor/local-notifications/android') + include ':capacitor-preferences' project(':capacitor-preferences').projectDir = new File('../node_modules/@capacitor/preferences/android') diff --git a/ios/App/App.xcodeproj/project.pbxproj b/ios/App/App.xcodeproj/project.pbxproj index 88bed10..b9b0d07 100644 --- a/ios/App/App.xcodeproj/project.pbxproj +++ b/ios/App/App.xcodeproj/project.pbxproj @@ -27,6 +27,7 @@ 504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = ""; }; + 730477372BB91A4200A78988 /* App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = App.entitlements; sourceTree = ""; }; AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_App.framework; sourceTree = BUILT_PRODUCTS_DIR; }; AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.release.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig"; sourceTree = ""; }; FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.debug.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.debug.xcconfig"; sourceTree = ""; }; @@ -73,6 +74,7 @@ 504EC3061FED79650016851F /* App */ = { isa = PBXGroup; children = ( + 730477372BB91A4200A78988 /* App.entitlements */, 50379B222058CBB4000EE86E /* capacitor.config.json */, 504EC3071FED79650016851F /* AppDelegate.swift */, 504EC30B1FED79650016851F /* Main.storyboard */, @@ -345,6 +347,7 @@ baseConfigurationReference = FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = App/App.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = W7HPZ53V6B; @@ -367,6 +370,7 @@ baseConfigurationReference = AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = App/App.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = W7HPZ53V6B; diff --git a/ios/App/App/App.entitlements b/ios/App/App/App.entitlements new file mode 100644 index 0000000..1feeec2 --- /dev/null +++ b/ios/App/App/App.entitlements @@ -0,0 +1,12 @@ + + + + + aps-environment + development + com.apple.developer.associated-domains + + webcredentials:solsynth.dev + + + diff --git a/ios/App/App/Info.plist b/ios/App/App/Info.plist index 6c505fb..a9e8e97 100644 --- a/ios/App/App/Info.plist +++ b/ios/App/App/Info.plist @@ -20,8 +20,21 @@ $(MARKETING_VERSION) CFBundleVersion $(CURRENT_PROJECT_VERSION) + LSApplicationCategoryType + LSRequiresIPhoneOS + NSCameraUsageDescription + Allow Solian use your camera so that you can take photo for your post. + NSPhotoLibraryAddUsageDescription + Allow Solian full access your photo library so that you can share photos more easily. + NSPhotoLibraryUsageDescription + Allow Solian access your photo library so that you can share photos. + UIBackgroundModes + + fetch + remote-notification + UILaunchStoryboardName LaunchScreen UIMainStoryboardFile @@ -43,15 +56,7 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight - LSApplicationCategoryType - UIViewControllerBasedStatusBarAppearance - NSPhotoLibraryAddUsageDescription - Allow Solian full access your photo library so that you can share photos more easily. - NSPhotoLibraryUsageDescription - Allow Solian access your photo library so that you can share photos. - NSCameraUsageDescription - Allow Solian use your camera so that you can take photo for your post. diff --git a/ios/App/Podfile b/ios/App/Podfile index e403f39..f123216 100644 --- a/ios/App/Podfile +++ b/ios/App/Podfile @@ -11,6 +11,7 @@ install! 'cocoapods', :disable_input_output_paths => true def capacitor_pods pod 'Capacitor', :path => '../../node_modules/@capacitor/ios' pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios' + pod 'CapacitorLocalNotifications', :path => '../../node_modules/@capacitor/local-notifications' pod 'CapacitorPreferences', :path => '../../node_modules/@capacitor/preferences' end diff --git a/ios/App/Podfile.lock b/ios/App/Podfile.lock index 79c172c..2b32d3b 100644 --- a/ios/App/Podfile.lock +++ b/ios/App/Podfile.lock @@ -2,12 +2,15 @@ PODS: - Capacitor (5.7.4): - CapacitorCordova - CapacitorCordova (5.7.4) + - CapacitorLocalNotifications (5.0.7): + - Capacitor - CapacitorPreferences (5.0.7): - Capacitor DEPENDENCIES: - "Capacitor (from `../../node_modules/@capacitor/ios`)" - "CapacitorCordova (from `../../node_modules/@capacitor/ios`)" + - "CapacitorLocalNotifications (from `../../node_modules/@capacitor/local-notifications`)" - "CapacitorPreferences (from `../../node_modules/@capacitor/preferences`)" EXTERNAL SOURCES: @@ -15,14 +18,17 @@ EXTERNAL SOURCES: :path: "../../node_modules/@capacitor/ios" CapacitorCordova: :path: "../../node_modules/@capacitor/ios" + CapacitorLocalNotifications: + :path: "../../node_modules/@capacitor/local-notifications" CapacitorPreferences: :path: "../../node_modules/@capacitor/preferences" SPEC CHECKSUMS: Capacitor: 4fe9adf012caceb4c71ffea2f1f4d005cdcbeea7 CapacitorCordova: a6e87fccc0307dee7aec1560ec9398485f2b0ce7 + CapacitorLocalNotifications: c58afadd159f6bc540ef9b3cbdbc82510a2bf112 CapacitorPreferences: 77ac427e98db83bace772455f8ba447430382c4c -PODFILE CHECKSUM: 769e120bf4dfe4ef1095b83775e36bafeeeb3cdd +PODFILE CHECKSUM: 19c3106e1cb0c8c0ae26243bfb70b974f8cfaaf5 COCOAPODS: 1.15.1 diff --git a/package.json b/package.json index 817c96f..6c474a8 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "@capacitor/android": "^5.7.4", "@capacitor/core": "^5.7.4", "@capacitor/ios": "^5.7.4", + "@capacitor/local-notifications": "^5.0.7", "@capacitor/preferences": "^5.0.7", "@fontsource/roboto": "^5.0.12", "@mdi/font": "^7.4.47", diff --git a/src/components/NotificationList.vue b/src/components/NotificationList.vue index 75fe365..7f3cfd8 100644 --- a/src/components/NotificationList.vue +++ b/src/components/NotificationList.vue @@ -1,8 +1,8 @@