Skip to content

Commit

Permalink
more removal for firebase related code
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunaj5 committed May 5, 2024
1 parent f51a5c2 commit 645ab93
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
16 changes: 0 additions & 16 deletions ios/App/App/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// tracking app url opens, make sure to keep this call
return ApplicationDelegateProxy.shared.application(application, continue: userActivity, restorationHandler: restorationHandler)
}


func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
Messaging.messaging().apnsToken = deviceToken
Messaging.messaging().token(completion: { (token, error) in
if let error = error {
NotificationCenter.default.post(name: .capacitorDidFailToRegisterForRemoteNotifications, object: error)
} else if let token = token {
NotificationCenter.default.post(name: .capacitorDidRegisterForRemoteNotifications, object: token)
}
})
}

func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
NotificationCenter.default.post(name: .capacitorDidFailToRegisterForRemoteNotifications, object: error)
}
}


8 changes: 0 additions & 8 deletions ios/App/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ def capacitor_pods
pod 'CordovaPluginsResources', :path => '../capacitor-cordova-ios-plugins'
end

target 'App' do
capacitor_pods
# Add your Pods here
pod 'FirebaseCore'
pod 'Firebase/Messaging'
end


post_install do |installer|
assertDeploymentTarget(installer)
end

0 comments on commit 645ab93

Please sign in to comment.