Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Push, Wallet] Integrate push in wallet #690

Merged
merged 13 commits into from
Jan 30, 2023
Merged

Conversation

llbartekll
Copy link
Contributor

@llbartekll llbartekll commented Jan 26, 2023

Description

integrate Push sdk in the wallet app

Resolves #662

How Has This Been Tested?

manual testing of WalletApp with react dapp

Due Dilligence

  • Breaking change
  • Requires a documentation update

…V2 into integrate-push-in-wallet

# Conflicts:
#	Example/ExampleApp.xcodeproj/project.pbxproj
#	Sources/WalletConnectPush/Client/Dapp/ProposalResponseSubscriber.swift
#	Sources/WalletConnectPush/Client/Wallet/PushRequestResponder.swift
@llbartekll llbartekll marked this pull request as draft January 26, 2023 10:21
@arein arein added the accepted label Jan 26, 2023
@llbartekll llbartekll marked this pull request as ready for review January 26, 2023 13:04
@llbartekll llbartekll requested review from alexander-lsvk and flypaper0 and removed request for alexander-lsvk January 26, 2023 13:04
self.contentHandler = contentHandler
bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
if let bestAttemptContent = bestAttemptContent {
let topic = bestAttemptContent.userInfo["topic"] as! String
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's unwrap with "?" here?

@@ -31,6 +34,7 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
app.uri = connectionOptions.urlContexts.first?.url.absoluteString.replacingOccurrences(of: "walletapp://wc?uri=", with: "")

configurators.configure()
pushRegisterer.registerForPushNotifications()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can put PushRegisterer into out service container and call:
app.pushRegisterer.registerForPushNotifications()

@llbartekll llbartekll merged commit 4ee493f into develop Jan 30, 2023
@llbartekll llbartekll deleted the integrate-push-in-wallet branch January 30, 2023 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants