Giter Club home page Giter Club logo

lib-xpush-android's Introduction

XPUSH android library

Android library for xpush

Setting-up your project

git clone https://github.com/xpush/lib-xpush-android.git

And open/import this project in Android Studio.

Usage

Initialize XPushCore in user application.

public class MyApplication extends Application {
	@Override
	public void onCreate() {
		super.onCreate();
	    XPushCore.initialize(this);	    
	}
}

AndroidManifest.xml

<activity
    android:name="io.xpush.chat.activities.ChatActivity"
    android:windowSoftInputMode="adjustResize">
</activity>

<receiver
    android:name="io.xpush.chat.services.PushMsgReceiver"
    android:permission="com.google.android.c2dm.permission.SEND" >
    <intent-filter>
        <action android:name="com.google.android.c2dm.intent.RECEIVE" />
        <action android:name="io.xpush.chat.MGRECVD" />
    </intent-filter>
</receiver>

<receiver android:name="io.xpush.chat.services.ChangeStatusReceiver">
    <intent-filter>
        <action android:name="android.intent.action.BOOT_COMPLETED" />
        <action android:name="android.intent.action.USER_PRESENT" />
        <action android:name="android.intent.action.ACTION_PACKAGE_RESTARTED" />
        <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
    </intent-filter>
</receiver>

<service android:name="io.xpush.chat.services.XPushService" android:enabled="true" android:exported="true" >
</service>

<service android:name="io.xpush.chat.services.RegistrationIntentService" android:exported="false" >
</service>

<meta-data android:name="INTRO_ACTIVITY" android:value="io.xpush.chat.activities.ChatActivity"/>

<provider
    android:name="io.xpush.chat.persist.XpushContentProvider"
    android:authorities="@string/content_provider_authority" />

Sample application

SampleChat is simple chat application using XPUSH. This sample project helps you learn how to use XPUSH platform.

License

MIT Licensed.

lib-xpush-android's People

Contributors

0nlyoung7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.