8000 GitHub - ServiceStackApps/AndroidXamarinChat: An Android Xamarin Chat client for the ServiceStack chat demo application server.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

An Android Xamarin Chat client for the ServiceStack chat demo application server.

Notifications You must be signed in to change notification settings

ServiceStackApps/AndroidXamarinChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Android Xamarin Chat

An Android (Xamarin) Chat client for the ServiceStack Chat application!

Overview

Android (Xamarin) Chat shows integration with ServiceStack server from a Xamarin application utilizing the following ServiceStack features.

  • ServiceStack Authentication Providers (Twitter)
    • Using Xamarin.Auth to provide a more native experience
    • Xamarin.Auth generic wrapper for ServiceStack auth providers
    • Storing ServiceStack account details using Xamarin AccountStore.
  • Server Side Events feature (Chat messages and commands)
    • Command receivers
      • Announce reciever using Android notifications
      • CSS receiver intepreting messages to change background image and colors
      • Play youtube receiver to natively hand off to Android devices registered application
    • New sseClient.SubscribeToChannels to dynamically listen to new channels without restarting the connection. (4.0.53+)
    • Custom IResolver
    • Getting active event subscribers
  • Add ServiceStack Reference (Chat DTOs)

Authentication using Xamarin.Auth

Xamarin.Auth is a component you can use when developing Xamarin clients that authenticate with common OAuth proviers like Twitter, Facebook, etc. This component can also be used with ServiceStack OAuth providers by creating a wrapper for the WebAuthenticator.

var ssAuth = new ServiceStackAuthenticator(
    MainActivity.BaseUrl,
    "twitter", jsonServiceClient =>
    {
        var userDetails = jsonServiceClient.Get(new GetUserDetails());
        return new Account(userDetails.UserName, jsonServiceClient.CookieContainer);
    });

More info about this wrapper at the TechStacksAuth repository

Command receivers

About

An Android Xamarin Chat client for the ServiceStack chat demo application server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0