Intercom 6.1.0.1 for Xamarin.Forms
Today I would like to present to you 3 new updates.
- Intercom for Xamarin.Forms
- Update for Native libs for Intercome
- Examples
Intercom for Xamarin.Forms
After we finished with the development of native libraries, we started creating a cross-platform solution. Now, for convenience and ease of use on Xamarin. Forms we have available the following list of methods:
void EnableLogging();
void HandleIntercomPushNotification(Dictionary<string, string> userInfo);
void HideMessenger();
bool IsIntercomPushNotification(Dictionary<string, string> userInfo);
void LogEventWithName(string name);
void LogEventWithName(string name, Dictionary<string, string> metaData);
void Logout();
void PresentConversationList();
void PresentHelpCenter();
void PresentMessageComposer(string initialMessage);
void PresentMessageComposer();
void PresentMessageComposerWithInitialMessage(string message);
void PresentMessenger();
void RegisterUnidentifiedUser();
void RegisterUserWithEmail(string email);
void RegisterUserWithUserId(string userId, string email);
void RegisterUserWithUserId(string userId);
void Reset();
void SetBottomPadding(float bottomPadding);
void SetDeviceToken(string deviceToken);
void SetInAppMessagesVisible(bool visible);
void SetLauncherVisible(bool visible);
void SetNeedsStatusBarAppearanceUpdate();
void SetUserHash(string userHash);
For now, to outline in the project Intercom messenger in Xamarin.Forms, we need 3 lines of code.
Initialization in the native project:
IntercomService.Initialize(this, “your api key”, “your app id”);
User registration and popup display right on your Xamarin.Forms page:
CrossIntercomService.Current.RegisterUserWithUserId(“123456”);
CrossIntercomService.Current.PresentMessenger();
Feel free to review the full version of the instruction here
Native libs updates
What concerns updates of the native libraries (Intercom.IOS, Intercom.Android): we have changed versions of the minimal supported version of OS. For Android — KitKat 4.4, for iOS — available versions. Now our package is available for all modern applications.
Examples of using Intercom for Xamarin
For your convenience, we have also added examples of working projects. Feel free to review them in our repository.
Also, you can check the guide by native libs for Intercom.
Thanks for your attention!
By Pavel Chuvak from Igniscor