Open uknowmeright opened 1 month ago
Just to provide an example, here is a blank project with the SDK implemented how we have it in our app. (with the API key removed)
I left the vanilla SwiftUI implementation uncommented but if you would like to try it using the AppDelegate I included that code as well just commented out.
Bump as we have the same issue.
Bumping this, has anyone taken a look at this issue?
We are trying to get the PX Editor integrated into our SwiftUI app and having issues.
The URL Scheme has been successfully registered and the link provided from the Product Mapper page does open in the app, however, the only thing that happens is an activity indicator is shown above the rest of the UI and never goes away until the app is restarted again.
We have tried integrating with the AppDelegate methods as instructed here, as well as using the SwiftUI version of these hooks on our SwiftUI rootview itself:
We are initializing the SDK with following code that we have tried putting in an appDelegate
didLaunch
method as well as a the.onChange(of: scenePhase)
method on our WindowGroup:Both of these seem to have the same effect and successfully initialize the SDK.
Any Idea why the PX Editor would still not be launching correctly for us? Does it fully support integration with SwiftUI apps?