First, registration
Second, in the official website login, upper right corner, click on the console
Go in and click Create app to fill out the app name and app package name click on the image below in the upper left corner there is a select app, go to the app you just created, you'll get a appkey, then use three, after creating an app, we create an app. Note the app name and package name are the same as just now. Then go to the official website-"Document-" Resources Download-"jpush-" Download ANDROID-SDK, if you need x86 SDK and MIPS SDK framework, you can download all. Four, unzip the downloaded files, libs folder below the files are copied and pasted into the Libs of your project, set the Jpush-xxxxxx.jar to the library set as a library method: Select the jar, right, add as Library->ok Five, will Jpush-andr Copy and paste all the files in the oid-arm-2.0.5\jpush-android-arm\res\drawable-hdpi into your project's drawable jpush-android-arm-2.0.5\ Copy and paste the files in the jpush-android-arm\res\layout to the layout of your project VI. configuration androidmanifest files, there are specific methods in the official website. There's a place to change.
<?xml version= "1.0" encoding= "Utf-8"? ><manifest xmlns:android= "http://schemas.android.com/apk/res/ Android "package=" Com.wang.aaa "><!--to copy and paste it from the official website or from me, note that the location is not mistaken, Also, change the position of these colors to your package name-- <!--Required Customizing permissions to send and receive messages--<permission android:name= "com.wang.aaa. permission. Jpush_message "android:protectionlevel=" signature "/> <!--Required Some system-required permissions, such as access to the network and so on <uses-per Mission Android:name= "com.wang.aaa. permission. Jpush_message "/> <uses-permission android:name=" Android.permission.RECEIVE_USER_PRESENT "/> <uses-perm Ission android:name= "Android.permission.INTERNET"/> <uses-permission android:name= "android.permission.WAKE_ LOCK "/> <uses-permission android:name=" Android.permission.READ_PHONE_STATE "/> <uses-permission Android : Name= "Android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name= "Android.permission.READ _external_storage "/> <uses-permission android:name=" Android.permission.WRITE_SETTINGS "/> <uses-permis Sion android:name= "Android.permission.VIBRATE"/> <uses-permission android:name= "android.permission.MOUNT_ Unmount_filesystems "/> <uses-permission android:name=" Android.permission.ACCESS_NETWORK_STATE "/> <use S-permission android:name= "Android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name= " Android.permission.SYSTEM_ALERT_WINDOW "/> <application android:allowbackup= "true" android:icon= "@mipmap/ic_launcher" android:label= "@str Ing/app_name "Android:theme=" @style/apptheme "> <activity android:name=". Mainactivity "android:label=" @string/app_name "> <intent-filter> <action Android:name= "Android.intent.action.MAIN"/> <category android:name= "Android.intent.category.LAUNCHER "/> </intent-filter> </activity><!--Required SDK core functions--<activity android:name= "Cn.jpush.android.ui.PushActivity" a Ndroid:configchanges= "Orientation|keyboardhidden" Android:theme= "@android: Style/theme.notitlebar" an Droid:exported= "false" > <intent-filter> <action android:name= "Cn.jpush.android.ui.Pu Shactivity "/> <category android:name=" Android.intent.category.DEFAULT "/> <cate Gory Android:name= "com.wang.aaa"/> </intent-filter> </activity> <!--Required SDK Core features--<servic E android:name= "Cn.jpush.android.service.DownloadService" android:enabled= "true" Android: Exported= "false" > </service> <!--Required SDK Core Features-<!--option since 2.0.5 configurable The android:process parameter of the Pushservice,daemonservice,pushreceiver,alarmreceiver sets the Jpush related component to a separate process-<!--such as: Androi d:process= ": Remote"--<service Android:name= "Cn.jpush.android.service.PushService" an Droid:enabled= "true" android:exported= "false" > <intent-filter> <action an Droid:name= "Cn.jpush.android.intent.REGISTER"/> <action android:name= "Cn.jpush.android.intent.REPORT "/> <action android:name=" Cn.jpush.android.intent.PushService "/> <action Andro Id:name= "Cn.jpush.android. Intent. Push_time "/> </intent-filter> </service> <!--Required SDK core features since 1.8.0-- > <service android:name= "Cn.jpush.android.service.DaemonService" android:enabled= "true" Android:exported= "true" > <intent-filter > <action android:name= "Cn.jpush . Android.intent.DaemonService "/> <category android:name="com.wang.aaa"/> </intent-filter> </service> <!--Required SDK Core features--<receiver Android:name= "Cn.jpush.android.service.PushReceiver" android:enabled= "true" Android:expo Rted= "false" > <intent-filter android:priority= "$" > <action android:name= "Cn.jpush . Android.intent.NOTIFICATION_RECEIVED_PROXY "/> <!--Required Display notification BAR-<category android:name="com.wang.aaa"/> </intent-filter> <intent-filter> <action android:name=" Android . Intent.action.USER_PRESENT "/> <action android:name=" Android.net.conn.CONNECTIVITY_CHANGE "/> </intent-filter> <!--Optional--<intent-filter> <acti On android:name= "Android.intent.action.PACKAGE_ADDED"/> <action android:name= "android.intent.action. Package_removed "/> <data android:scheme=" package "/> </intent-filter> < ;/receiver> <!--Required SDK Core Features--<receiver android:name= "cn.jpush.android.service.AlarmRecei Ver "/> <!--Required. Enable it can get statistics data with channel-to-<meta-data android:name= "Jpush_channel" android:value= "Developer-default"/> <meta-data android:name= "Jpush_appkey" android:value= "Change to your own APPKEY"/> <! --value from the developer platform to get the appkey--></application></manifest>
Vii. adding App.class to the project
The code inside is as follows
public class App extends application { @Override public void OnCreate () { super.oncreate (); Jpushinterface.setdebugmode (true); Jpushinterface.init (this);} }
Eight, add a bit of code in android{} in Build.gradle
sourcesets.main{ jnilibs.srcdirs=[' libs ' }
Nine, to the official website test
Android Aurora Push SDK Integration