microsoftconnect / intune-app-wrapping-tool-android

Use the Intune App Wrapping Tool for Android to enable Android apps to be managed by Microsoft Intune
28 stars 11 forks source link

On launch crash of MAUI app after wrapping on android platform #88

Closed PramodKumarHK89 closed 9 months ago

PramodKumarHK89 commented 9 months ago

Questions to Ask Before Submission

  1. Does you app launch successfully without wrapping? Yes, it does.
  2. Have you reviewed the prerequisites for App Wrapping? Yes. Followed all the instructions.
  3. Does your issue have a solution in the Troubleshooting Guide? No.
  4. Have you checked the Microsoft Intune App SDK for Android repository for similar issues? Yes. But this is specific to app wrapping tool I believe
  5. Are you using the latest version of the App Wrapper? Yes . that latest one.

Describe the bug: I have wrapped the .NET MAUI apk using latest app wrapping tool. It is able to install the app on the device. It crashes on launch. If I uninstall the company portal afte installing my sample app then, app says "please install Company portal". It appears like, app is crashing while it is establising connection with broker(COmpany portal)

To Reproduce Steps to reproduce the behavior:

  1. Create a sample MAUI app.
  2. Wrapp the apk and sign the spk and upload it to Intune admin portal
  3. Applye MAM policy
  4. App simply crashes

Expected behavior: App should launch and MAM should apply

INCIDENT ID - SF6DY23R

Smartphone (please complete the following information):

Intune app wrapping tool (please complete the following information):

Additional context: Add any other context about the problem here.

rygo-msft commented 9 months ago

Hi @PramodKumarHK89, the App Wrapping Tool does not support MAUI apps. You should leverage the MAUI SDK directly instead. https://www.nuget.org/packages/Microsoft.Intune.Maui.Essentials.android