From 2d5bfbd8a3ae6638100701689e3f278c0087735b Mon Sep 17 00:00:00 2001 From: Equilibrium ITO Date: Sun, 3 Mar 2024 18:19:04 +0100 Subject: [PATCH] remove white background --- ios/App/App/Info.plist | 90 +++++++++++++++++++ src/app/services/notifications.service.ts | 12 ++- .../despachos-options.page.scss | 2 +- .../despachos-pr-options.page.scss | 2 +- src/environments/environment.ts | 2 +- 5 files changed, 102 insertions(+), 6 deletions(-) diff --git a/ios/App/App/Info.plist b/ios/App/App/Info.plist index 97818e13d..4854f5059 100644 --- a/ios/App/App/Info.plist +++ b/ios/App/App/Info.plist @@ -1,6 +1,95 @@ + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + Gabinete Digital + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleURLTypes + + + CFBundleTypeRole + Editor + CFBundleURLName + com.gpr.gabinetedigital.teste + CFBundleURLSchemes + + gabinetedigital + + + + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + LSApplicationCategoryType + + LSRequiresIPhoneOS + + NSCameraUsageDescription + This app requires access to the camera. + NSMicrophoneUsageDescription + This app does not require access to the microphone. + NSPhotoLibraryAddUsageDescription + This app requires access to the photo library. + NSPhotoLibraryUsageDescription + This app requires access to the photo library. + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + + + + FirebaseAppDelegateProxyEnabled + + UNUserNotificationCenterDelegate + YourApp.NotificationDelegate + UIBackgroundModes + + remote-notification + + + + + + \ No newline at end of file diff --git a/src/app/services/notifications.service.ts b/src/app/services/notifications.service.ts index bdb56be30..0ce3fde6c 100644 --- a/src/app/services/notifications.service.ts +++ b/src/app/services/notifications.service.ts @@ -65,6 +65,7 @@ export class NotificationsService { } requestPermissions() { + console.log('init notificaton permission') if (this.platform.is('mobile')) { if (!this.isPushNotificationsAvailable) { @@ -72,17 +73,22 @@ export class NotificationsService { } PushNotifications.requestPermissions().then(async (result) => { if (result.receive === 'granted') { + console.log('permission granted') // Register with Apple / Google to receive push via APNS/FCM try { - PushNotifications.register().catch((error) => { - console.log("Register device", error) + PushNotifications.register().then((value) => { + console.log("Register device", value) + this.getAndpostToken("") + }) .catch((error) => { + console.log("Register device error", error) }) - this.getAndpostToken("") + } catch (error) { console.log("Granted permission error", error) } } else { // Show some error + console.log('permission notification erro') } }); } else { diff --git a/src/app/shared/popover/despachos-options/despachos-options.page.scss b/src/app/shared/popover/despachos-options/despachos-options.page.scss index 46754f488..b18219baf 100644 --- a/src/app/shared/popover/despachos-options/despachos-options.page.scss +++ b/src/app/shared/popover/despachos-options/despachos-options.page.scss @@ -60,5 +60,5 @@ .desk{ text-align: left; - background-color: white; + background-color: transparent; } diff --git a/src/app/shared/popover/despachos-pr-options/despachos-pr-options.page.scss b/src/app/shared/popover/despachos-pr-options/despachos-pr-options.page.scss index 89b518e17..13ee31a1a 100644 --- a/src/app/shared/popover/despachos-pr-options/despachos-pr-options.page.scss +++ b/src/app/shared/popover/despachos-pr-options/despachos-pr-options.page.scss @@ -59,5 +59,5 @@ .desk{ text-align: left; - background-color: white; + background-color: transparent; } diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 3bd65b833..983359e87 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -4,4 +4,4 @@ import { doneITDev } from './suport/doneIt' import { DevDev } from './suport/dev' -export const environment: Environment = oaprDev +export const environment: Environment = DevDev