Amplitude-Flutter icon indicating copy to clipboard operation
Amplitude-Flutter copied to clipboard

feat: add support for macos

Open jointhejourney opened this issue 1 year ago • 3 comments

Hi there,

Our Flutter app, Journey Navigation, utilizes Amplitude for our iOS app and we wanted to use it for our MacOS app as well.

I took advantage of the sharedDarwinSource option, since the Amplitude-iOS package is compatible with MacOS. The changes are fairly straightforward, and everything seems to work ok.

Fixes #46

jointhejourney avatar Oct 08 '23 21:10 jointhejourney

One thing I did notice, is that "Device Type" isn't available when running on MacOS. However, I don't think it has to do with this Flutter package, it might be an issue with Amplitude-iOS.

edit:

I tried overriding the event from the Flutter side of things by using the device_info_plus package + apple_product_name but couldn't get it to work. Seems like it can only be fixed by the Amplitude-iOS package.

jointhejourney avatar Oct 08 '23 21:10 jointhejourney

@justin-fiedler any chance we could get this merged in?

jointhejourney avatar Feb 11 '24 09:02 jointhejourney

@jointhejourney Thanks for created this pull request. We are in the process of updating the flutter SDK to use our newer iOS and Android SDKs. So ideally, we'd want to use the macos support in our swift SDK. I'll keep this thread updated on an ETA on when this will be made available.

izaaz avatar Feb 12 '24 17:02 izaaz