Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intercom #11

Open
kfrancis opened this issue Apr 17, 2023 · 13 comments
Open

Intercom #11

kfrancis opened this issue Apr 17, 2023 · 13 comments

Comments

@kfrancis
Copy link

Can we get some assistance creating a MAUI-compatible binding for the Intercom service?

We've long used the bindings for in-app use of Intercom but it doesn't look like anyone has needed to or attempted to create a binding yet and when we attempt to do it ourselves, we're having a hard time getting it to build. This is an example of one we've been using: https://github.com/DouglasGiovanella/Xamarin.Android.Intercom within our Xamarin Forms app.

@realZhangChi
Copy link
Owner

Hi, I'm going to try to create a binding library for Intercom, it will probably take a week or more.

@kfrancis
Copy link
Author

Ok, sounds good. Appreciate the help @realZhangChi, it's always been such a pain to get updates from any of the people that have previously built bindings for Intercom and it's a complicated setup that inhibits ease in creation.

@maximfrisk
Copy link

This would be lovely to have Intercom available as a binding for .Net maui iOS and Android

@realZhangChi
Copy link
Owner

Hi, @kfrancis
I have created Maui binding library for android for intercom-sdk-base and intercom-sdk, you can search Chi.MauiBinding.Android.Intercom in nuget and use it.
I just created the binding library and packaged it, I didn't create a Maui project to test them, please let me know if you have any problems using them.

Hi @maximfrisk
I will create a binding library for iOS later.

@kfrancis
Copy link
Author

@realZhangChi It doesn't seem to work. #1, there are build issues when using it and I think it's because of the mapping's are required. See https://github.com/chuvakpavel/Intercome.Xamarin.Android for a more complete (though outdated and not maui-compatible) example, specifically:

The firebase version isn't of much use I don't think, within the context of MAUI.

@maximfrisk
Copy link

Hi @realZhangChi, No worries about the iOS version we got it working. But we are struggling to get our own version of intercom to work for Android.

Getting the same errors as @kfrancis when trying your binding. (got the same errors when trying to the binding myself).

@realZhangChi
Copy link
Owner

@kfrancis Thank you for the links. They are very helpful. Can you provide some information about Composer and Cpmposer.Gallery? I don't see them in the Intercom documentation. Are they necessary?

@kfrancis
Copy link
Author

@realZhangChi I found something today that might be helpful: https://github.com/kfrancis/IntercomDotNet/blob/main/src/Intercom.Droid.Composer/Intercom.Droid.Composer.csproj#L19

Can't get it to build yet .. but it looks promising.

@realZhangChi
Copy link
Owner

@kfrancis After reviewing the repository you provided, I found that creating an intercom binding library is more complicated than I thought. To create an intercom binding library, you must first create other binding libraries that it depends on.

https://github.com/chuvakpavel/Intercome.Xamarin.Android I think this library is very helpful, we can refer to its ideas to create a maui version of the binding library. I will continue to work on the intercom branch, but it may take a long time, you can pay attention to the intercom branch. If you have any progress, you are welcome to share it here, and PR is also welcome.

Also, English is not my native language, please let me know if there is anything you don't understand.

@maximfrisk
Copy link

@realZhangChi, do you have any update on the Intercom for Android?

@kfrancis
Copy link
Author

@kfrancis After reviewing the repository you provided, I found that creating an intercom binding library is more complicated than I thought. To create an intercom binding library, you must first create other binding libraries that it depends on.

https://github.com/chuvakpavel/Intercome.Xamarin.Android I think this library is very helpful, we can refer to its ideas to create a maui version of the binding library. I will continue to work on the intercom branch, but it may take a long time, you can pay attention to the intercom branch. If you have any progress, you are welcome to share it here, and PR is also welcome.

Also, English is not my native language, please let me know if there is anything you don't understand.

The only issue with the one you linked is that it's basically abandoned, which is the problem with ALL the intercom bindings that people have put together. I had to turn off our use of that library just yesterday because of it causing android apps to crash immediately on load:

k0lye-1682516336-093856

@maximfrisk
Copy link

Hello! any update on the progress for the android Binding?

@kfrancis
Copy link
Author

@maximfrisk This one is what we actively use, but it's annoying that he's basically abandoned it like all the others. It's the only one that's moderately "recent". If you're just doing android, then it's pretty simple to get it working (with those maven bindings, minus the actual SDK lib which I had to do via jar method) but if you have to deal with ios then it's all right out the window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants