-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c80caf6
commit fbb18ec
Showing
13 changed files
with
440 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
//// | ||
//// AppDelegate.swift | ||
//// UpgradeUpsell | ||
//// | ||
//// Created by zahra SHAHIN on 2023-11-20. | ||
//// | ||
//import UIKit | ||
//import Firebase | ||
//import FirebaseMessaging | ||
//import UserNotifications | ||
// | ||
//@UIApplicationMain | ||
//class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, MessagingDelegate { | ||
// | ||
// var window: UIWindow? | ||
// | ||
// func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
// // Configure Firebase | ||
// FirebaseApp.configure() | ||
// | ||
// // Set up Firebase Cloud Messaging | ||
// Messaging.messaging().delegate = self | ||
// | ||
// // Register for remote notifications | ||
// if #available(iOS 10.0, *) { | ||
// let authOptions: UNAuthorizationOptions = [.alert, .badge, .sound] | ||
// UNUserNotificationCenter.current().requestAuthorization( | ||
// options: authOptions, | ||
// completionHandler: { _, _ in } | ||
// ) | ||
// } else { | ||
// let settings: UIUserNotificationSettings = | ||
// UIUserNotificationSettings(types: [.alert, .badge, .sound], categories: nil) | ||
// application.registerUserNotificationSettings(settings) | ||
// } | ||
// application.registerForRemoteNotifications() | ||
// | ||
// // Override point for customization after application launch. | ||
// return true | ||
// } | ||
// | ||
// func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { | ||
// // This method will be called when the app successfully registers for remote notifications | ||
// // You can send this token to your server if needed | ||
// Messaging.messaging().apnsToken = deviceToken | ||
// } | ||
// | ||
// func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) { | ||
// // This method will be called if the app fails to register for remote notifications | ||
// print("Failed to register for remote notifications with error: \(error.localizedDescription)") | ||
// } | ||
// | ||
// // MARK: - Firebase Cloud Messaging Delegates | ||
// | ||
// func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String?) { | ||
// // This method will be called when the app successfully receives an FCM registration token | ||
// // You can send this token to your server if needed | ||
// print("FCM registration token: \(fcmToken ?? "")") | ||
// } | ||
// | ||
// func messaging(_ messaging: Messaging, didReceive remoteMessage: MessagingRemoteMessage) { | ||
// // This method will be called when a remote FCM message is received | ||
// print("Received data message: \(remoteMessage.appData)") | ||
// } | ||
// | ||
// // MARK: - UNUserNotificationCenterDelegate | ||
// | ||
// // If you want to handle notification interactions, implement the methods of UNUserNotificationCenterDelegate | ||
// | ||
// func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { | ||
// // Handle foreground notifications here | ||
// completionHandler([.alert, .badge, .sound]) | ||
// } | ||
// | ||
// func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) { | ||
// // Handle notification tap actions here | ||
// completionHandler() | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Uncomment the next line to define a global platform for your project | ||
platform :ios, '14.0' | ||
|
||
target 'UpgradeUpsell' do | ||
# Comment the next line if you don't want to use dynamic frameworks | ||
use_frameworks! | ||
|
||
# Pods for UpgradeUpsell | ||
pod 'Firebase/Messaging','12.0.0' | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
PODS: | ||
- Firebase/CoreOnly (10.18.0): | ||
- FirebaseCore (= 10.18.0) | ||
- Firebase/Messaging (10.18.0): | ||
- Firebase/CoreOnly | ||
- FirebaseMessaging (~> 10.18.0) | ||
- FirebaseCore (10.18.0): | ||
- FirebaseCoreInternal (~> 10.0) | ||
- GoogleUtilities/Environment (~> 7.12) | ||
- GoogleUtilities/Logger (~> 7.12) | ||
- FirebaseCoreInternal (10.18.0): | ||
- "GoogleUtilities/NSData+zlib (~> 7.8)" | ||
- FirebaseInstallations (10.18.0): | ||
- FirebaseCore (~> 10.0) | ||
- GoogleUtilities/Environment (~> 7.8) | ||
- GoogleUtilities/UserDefaults (~> 7.8) | ||
- PromisesObjC (~> 2.1) | ||
- FirebaseMessaging (10.18.0): | ||
- FirebaseCore (~> 10.0) | ||
- FirebaseInstallations (~> 10.0) | ||
- GoogleDataTransport (~> 9.2) | ||
- GoogleUtilities/AppDelegateSwizzler (~> 7.8) | ||
- GoogleUtilities/Environment (~> 7.8) | ||
- GoogleUtilities/Reachability (~> 7.8) | ||
- GoogleUtilities/UserDefaults (~> 7.8) | ||
- nanopb (< 2.30910.0, >= 2.30908.0) | ||
- GoogleDataTransport (9.2.5): | ||
- GoogleUtilities/Environment (~> 7.7) | ||
- nanopb (< 2.30910.0, >= 2.30908.0) | ||
- PromisesObjC (< 3.0, >= 1.2) | ||
- GoogleUtilities/AppDelegateSwizzler (7.12.0): | ||
- GoogleUtilities/Environment | ||
- GoogleUtilities/Logger | ||
- GoogleUtilities/Network | ||
- GoogleUtilities/Environment (7.12.0): | ||
- PromisesObjC (< 3.0, >= 1.2) | ||
- GoogleUtilities/Logger (7.12.0): | ||
- GoogleUtilities/Environment | ||
- GoogleUtilities/Network (7.12.0): | ||
- GoogleUtilities/Logger | ||
- "GoogleUtilities/NSData+zlib" | ||
- GoogleUtilities/Reachability | ||
- "GoogleUtilities/NSData+zlib (7.12.0)" | ||
- GoogleUtilities/Reachability (7.12.0): | ||
- GoogleUtilities/Logger | ||
- GoogleUtilities/UserDefaults (7.12.0): | ||
- GoogleUtilities/Logger | ||
- nanopb (2.30909.1): | ||
- nanopb/decode (= 2.30909.1) | ||
- nanopb/encode (= 2.30909.1) | ||
- nanopb/decode (2.30909.1) | ||
- nanopb/encode (2.30909.1) | ||
- PromisesObjC (2.3.1) | ||
|
||
DEPENDENCIES: | ||
- Firebase/Messaging | ||
|
||
SPEC REPOS: | ||
trunk: | ||
- Firebase | ||
- FirebaseCore | ||
- FirebaseCoreInternal | ||
- FirebaseInstallations | ||
- FirebaseMessaging | ||
- GoogleDataTransport | ||
- GoogleUtilities | ||
- nanopb | ||
- PromisesObjC | ||
|
||
SPEC CHECKSUMS: | ||
Firebase: 414ad272f8d02dfbf12662a9d43f4bba9bec2a06 | ||
FirebaseCore: 2322423314d92f946219c8791674d2f3345b598f | ||
FirebaseCoreInternal: 8eb002e564b533bdcf1ba011f33f2b5c10e2ed4a | ||
FirebaseInstallations: e842042ec6ac1fd2e37d7706363ebe7f662afea4 | ||
FirebaseMessaging: 9bc34a98d2e0237e1b121915120d4d48ddcf301e | ||
GoogleDataTransport: 54dee9d48d14580407f8f5fbf2f496e92437a2f2 | ||
GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34 | ||
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5 | ||
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4 | ||
|
||
PODFILE CHECKSUM: bed26b7bf65335d329826dbe3c48f7d84f23390b | ||
|
||
COCOAPODS: 1.14.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+51.5 KB
(130%)
...roj/project.xcworkspace/xcuserdata/zahrashahin.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
...eproj/project.xcworkspace/xcuserdata/zahrashahin.xcuserdatad/WorkspaceSettings.xcsettings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>BuildLocationStyle</key> | ||
<string>UseAppPreferences</string> | ||
<key>CustomBuildLocationType</key> | ||
<string>RelativeToDerivedData</string> | ||
<key>DerivedDataLocationStyle</key> | ||
<string>Default</string> | ||
<key>ShowSharedSchemesAutomaticallyEnabled</key> | ||
<true/> | ||
</dict> | ||
</plist> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
UpgradeUpsell.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
Oops, something went wrong.