mwaylabs / flutter-managed-configuration

MIT License
1 stars 14 forks source link

[Documentation request] How do you test this on mac please #11

Open neiljaywarner opened 5 months ago

neiljaywarner commented 5 months ago

How do you test this on mac please? trying simplemdm, defaults write, no luck so far

lucygeneric commented 4 months ago

@neiljaywarner did you get this working? It's hard to tell if this works on iOs at all?

neiljaywarner commented 4 months ago

@lucygeneric it is fine on ios it is fine on mac with simplemdm, to use it with mac with intune i had to write custom swift code :(

danielkono commented 4 months ago

Apple provides for managed app configuration same code for both platforms. With 1.0.0 we migrated the iOS code to run also on MacOS by using the darwin. The test setup is for us quite simple because we develop our own mdm solutions. You can create a free Account at https://live.relution.io (it's free up to five devices).

Could you please share some information about your MacOS device?

neiljaywarner commented 4 months ago

It's just that Microsoft InTune works differently.

The keys go directly into userdefaults.standard not onto a subdictionary

....sent from my phone

On Fri, May 24, 2024, 6:18 AM danielkono @.***> wrote:

Apple provides for managed app configuration same code for both platforms. With 1.0.0 we migrated the iOS code to run also on MacOS by using the darwin https://docs.flutter.dev/packages-and-plugins/developing-packages#shared-ios-and-macos-implementations. The test setup is for us quite simple because we develop our own mdm solutions. You can create a free Account at https:/live.relution.io (it's free up to five devices).

Could you please share some information about your MacOS device?

— Reply to this email directly, view it on GitHub https://github.com/mwaylabs/flutter-managed-configuration/issues/11#issuecomment-2129284040, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXBGYNA2FCT2LHX3CAZI6TZD4OZ5AVCNFSM6AAAAABHNSWENKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRZGI4DIMBUGA . You are receiving this because you were mentioned.Message ID: @.***>

danielkono commented 4 months ago

ok, but then once could use the SharedPreferences package to get the NSUserDefaults. Pay attention that it adds per default ".flutter" to all keys. -> https://pub.dev/packages/shared_preferences#migration-and-prefixes.

neiljaywarner commented 4 months ago

I tried that too and it does not work because it locks ot down to persistent domain bundle id of the app

....sent from my phone

On Mon, May 27, 2024, 12:56 AM danielkono @.***> wrote:

ok, but then once could use the SharedPreferences package to get the NSUserDefaults. Pay attention that it adds per default ".flutter" to all keys. -> https://pub.dev/packages/shared_preferences#migration-and-prefixes.

— Reply to this email directly, view it on GitHub https://github.com/mwaylabs/flutter-managed-configuration/issues/11#issuecomment-2132696438, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXBGYLZ7IGJ3E36QVHZUX3ZELDJ7AVCNFSM6AAAAABHNSWENKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSGY4TMNBTHA . You are receiving this because you were mentioned.Message ID: @.***>