ms-intune-app-sdk-ios icon indicating copy to clipboard operation
ms-intune-app-sdk-ios copied to clipboard

SwiftUI Example Please!

Open chasemac opened this issue 4 years ago • 4 comments

Are there any examples of implementing Intune into SwiftUI project?

chasemac avatar Mar 24 '22 23:03 chasemac

Hey @chasemac, we do not have any Intune SwiftUI sample projects available at the moment.

vigavadi avatar Mar 25 '22 16:03 vigavadi

Hi @vigavadi, I created a SwiftUI wrapper and tried to set everything up just like it is in the sample UIKit Chatr app. Unfortunately I'm unable to get the loginAndEnrollAccount method to do anything. The deRegisterAndUnenrollAccount method does seem to be working and firing off the delegate method.

On a potentially related note, the sample Chatr app doesn't have any reference to MSAL in the main project code base, but the framework is Embedded and Signed The login flow seems to work on the sample app, so I assume the MSAL setup isn't required. Am I missing something here?

chasemac avatar Mar 28 '22 17:03 chasemac

@chasemac Have you followed these steps for integrating Intune SDK: https://docs.microsoft.com/en-us/mem/intune/developer/app-sdk-ios ?

vigavadi avatar Mar 31 '22 14:03 vigavadi

+1 to creating a MS-provided SwiftUI example. We won't consider using this framework until there is SPM support as well as a SwiftUI quick start example.

drmarkpowell avatar Oct 10 '22 17:10 drmarkpowell

Closing stale issues. Please reopen if you still need help with this.

ShruthiAchutha avatar Feb 23 '24 16:02 ShruthiAchutha