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

Is there any clearer way to get started with SwiftUI and Notification Hubs? #131

Open
ljunquera opened this issue May 29, 2022 · 0 comments

Comments

@ljunquera
Copy link

ljunquera commented May 29, 2022

Query/Question
I am following the documentation, but would like to have a clear basic set of instructions on how Notification Hubs should be implemented in SwiftUI.

For example in the Initializing SDK section, where should this go? AppDelegate.swift seems like the most likely place and there likely should be a set of steps to enable Notification Hubs in Swift as a baseline. Some tutorials like this seem to be helpful for APNS and getting started. It would be good to see the 5 or 10 things you need to do for a Swift app to get functional.

Example:

  1. Create Notification Hub in Azure
  2. Create iPhone App
  3. Register Notification Hub in client app
  4. Send test message from Azure Notification Hubs

Just something really spelling out what things are necessary to get a test notification to appear on an iPhone. From there we can layer in Tags, etc. The particular place where I am having trouble is the third step on my list. What "minimal viable" set of code do I need? Also having a SwiftUI example would be nice.

Do I only need code in this function to accomplish a test:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant