安卓接入jpush-android-3.0.8-release,报错


#1

推送sdk版本:3.0.8-release
测试环境:eclipse+真机(5.1.1)
工程AndroidManifest.xml如下:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.jsyiyi.YiYiFarm"
      android:versionCode="1"
      android:versionName="1.0"
      android:installLocation="auto">

    <uses-sdk android:minSdkVersion="9"/>
    <uses-feature android:glEsVersion="0x00020000" />
    
    <!-- Required -->
    <permission
        android:name="com.jsyiyi.YiYiFarm.permission.JPUSH_MESSAGE"
        android:protectionLevel="signature" />
  
    <!-- Required  一些系统要求的权限,如访问网络等-->
    <uses-permission android:name="com.jsyiyi.YiYiFarm.permission.JPUSH_MESSAGE" />
    <uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" />
    <uses-permission 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-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

    
    
    <!-- Optional for location -->
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> <!-- 用于开启 debug 版本的应用在6.0 系统上 层叠窗口权限 -->
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
    <uses-permission android:name="android.permission.GET_TASKS" />
    

    <application android:label="@string/app_name"
                 android:icon="@drawable/icon">
					 
        <!-- Tell Cocos2dxActivity the name of our .so -->
        <meta-data android:name="android.app.lib_name"
                  android:value="cocos2dlua" />
					  
        <activity android:name="org.cocos2dx.lua.AppActivity"
                  android:label="@string/app_name"
                  android:screenOrientation="landscape"
                  android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
                  android:configChanges="orientation">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        
        <!-- Required SDK核心功能-->
        <activity
            android:name="cn.jpush.android.ui.PushActivity"
            android:configChanges="orientation|keyboardHidden"
            android:theme="@android:style/Theme.NoTitleBar"
            android:exported="false">
            <intent-filter>
                <action android:name="cn.jpush.android.ui.PushActivity" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="com.jsyiyi.YiYiFarm" />
            </intent-filter>
        </activity>

        <!-- Required SDK 核心功能-->
        <!-- 可配置android:process参数将PushService放在其他进程中 -->
        <service
            android:name="cn.jpush.android.service.PushService"
            android:process=":mult"
            android:exported="false">
            <intent-filter>
                <action android:name="cn.jpush.android.intent.REGISTER" />
                <action android:name="cn.jpush.android.intent.REPORT" />
                <action android:name="cn.jpush.android.intent.PushService" />
                <action android:name="cn.jpush.android.intent.PUSH_TIME" />
            </intent-filter>
        </service>

        <!-- since 1.8.0 option 可选项。用于同一设备中不同应用的JPush服务相互拉起的功能。 -->
        <!-- 若不启用该功能可删除该组件,将不拉起其他应用也不能被其他应用拉起 -->
        <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.jsyiyi.YiYiFarm" />
            </intent-filter>

        </service>

        <!-- Required SDK核心功能-->
        <receiver
            android:name="cn.jpush.android.service.PushReceiver"
            android:enabled="true"
            android:exported="false">
            <intent-filter android:priority="1000">
                <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY" />   <!--Required  显示通知栏 -->
                <category android:name="com.jsyiyi.YiYiFarm" />
            </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>
                <action android:name="android.intent.action.PACKAGE_ADDED" />
                <action android:name="android.intent.action.PACKAGE_REMOVED" />

                <data android:scheme="package" />
            </intent-filter>
        </receiver>

        <!-- Required SDK核心功能-->
        <receiver android:name="cn.jpush.android.service.AlarmReceiver" android:exported="false"/>
        <meta-data android:name="JPUSH_CHANNEL" android:value="developer-default"/>
        <meta-data android:name="JPUSH_APPKEY" android:value="70bdad08c77db81dee362109" /> <!--  </>值来自开发者平台取得的AppKey-->
    </application>

    <supports-screens android:anyDensity="true"
                      android:smallScreens="true"
                      android:normalScreens="true"
                      android:largeScreens="true"
                      android:xlargeScreens="true"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>  
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>  
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>  
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>  
    
  	<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
 	<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
  
</manifest> 

发现推送消息没任何反应,相关部分日志信息输出如下:

09-11 19:58:48.881: I/System.out(30968): waiting for debugger to settle...
09-11 19:58:49.081: I/System.out(30968): debugger has settled (1353)
09-11 19:58:49.091: I/InjectionManager(30968): Inside getClassLibPath caller 
09-11 19:58:49.091: D/InjectionManager(30968): InjectionManager
09-11 19:58:49.091: D/InjectionManager(30968): fillFeatureStoreMap com.jsyiyi.YiYiFarm
09-11 19:58:49.091: I/InjectionManager(30968): Constructor com.jsyiyi.YiYiFarm, Feature store :{}
09-11 19:58:49.091: I/InjectionManager(30968): featureStore :{}
09-11 19:58:49.101: D/SecWifiDisplayUtil(30968): Metadata value : SecSettings2
09-11 19:58:49.131: D/JniHelper(30968): JniHelper::setJavaVM(0xf449d200), pthread_self() = -150668308
09-11 19:58:49.141: D/main(30968): cocos_android_app_init
09-11 19:58:49.161: D/Cocos2dxActivity(30968): model=SM-G925A
09-11 19:58:49.161: D/Cocos2dxActivity(30968): product=zerolteuc
09-11 19:58:49.161: D/Cocos2dxActivity(30968): isEmulator=false
09-11 19:58:49.171: D/PhoneWindow(30968): *FMB* installDecor mIsFloating : false
09-11 19:58:49.171: D/PhoneWindow(30968): *FMB* installDecor flags : 66816
09-11 19:58:49.171: D/PhoneWindow(30968): *FMB* installDecor call setFloatingMenuEnabled(true)
09-11 19:58:49.171: D/PhoneWindow(30968): *FMB* setFloatingMenuEnabled enable : true, mFloatingMenuBtn : null
09-11 19:58:49.191: D/JIGUANG-JPush(30968): [JPushInterface] action:init - sdkVersion:3.0.8, buildId:379
09-11 19:58:49.191: D/JIGUANG-JPush(30968): [AndroidUtil] action:checkValidManifest
09-11 19:58:49.191: W/JIGUANG-JPush(30968): [AndroidUtil] AndroidManifest.xml missing activity: cn.jpush.android.ui.PopWinActivity
09-11 19:58:49.191: W/JIGUANG-JPush(30968): [AndroidUtil] You will unable to use pop-window rich push type.
09-11 19:58:49.201: D/JIGUANG-JCore(30968): [AndroidUtil] action:checkValidManifest
09-11 19:58:49.211: D/JIGUANG-JCore(30968): [JCoreServiceUtils] set Push/Alarm Receiver enabled
09-11 19:58:49.221: D/JIGUANG-JCore(30968): [JCoreGlobal] action:init - sdkVersion:1.1.6, buildId:152
09-11 19:58:49.221: W/linker(30968): libjcore116.so: unused DT entry: type 0x6ffffffe arg 0x25dc
09-11 19:58:49.221: W/linker(30968): libjcore116.so: unused DT entry: type 0x6fffffff arg 0x1
09-11 19:58:49.221: D/JIGUANG-JCore(30968): [JCoreGlobal] metadata: appKey - 70bdad08c77db81dee362109
09-11 19:58:49.231: D/JIGUANG-JCore(30968): [JCoreGlobal] metadata: channel - developer-default
09-11 19:58:49.251: I/JIGUANG-JPush(30968): [PluginPlatformsInterface] whichPlatform - 0
09-11 19:58:49.271: D/Activity(30968): performCreate Call Injection manager
09-11 19:58:49.271: I/InjectionManager(30968): dispatchOnViewCreated > Target : org.cocos2dx.lua.AppActivity isFragment :false
09-11 19:58:49.291: D/PhoneWindow(30968): *FMB* isFloatingMenuEnabled mFloatingMenuBtn : com.android.internal.policy.impl.PhoneWindow$FloatingMenuButton{3cb74e69 V.ED..C. ......I. 0,0-0,0}
09-11 19:58:49.291: D/PhoneWindow(30968): *FMB* isFloatingMenuEnabled mFloatingMenuBtn visibility : 0
09-11 19:58:49.291: D/PhoneWindow(30968): *FMB* isFloatingMenuEnabled return true
09-11 19:58:49.291: D/PhoneWindow(30968): *FMB* onAttachedToWindow floating menu enabled
09-11 19:58:49.291: D/PhoneWindow(30968): *FMB* onAttachedToWindow rootView : com.android.internal.policy.impl.PhoneWindow$DecorView{22690ee V.E..... R.....ID 0,0-0,0}, this : com.android.internal.policy.impl.PhoneWindow$DecorView{22690ee V.E..... R.....ID 0,0-0,0}
09-11 19:58:49.341: D/libEGL(30968): loaded /vendor/lib/egl/libGLES_mali.so
09-11 19:58:49.361: D/mali_winsys(30968): new_window_surface returns 0x3000,  [2560x1440]-format:1
09-11 19:58:49.391: D/(30968): [G3D][cpomp_get_shader_from_blob_cache][compile_status: 1][shader_size: 0][ir_size: 7498]
09-11 19:58:49.391: D/(30968): [G3D][cpomp_get_shader_from_blob_cache][compile_status: 1][shader_size: 0][ir_size: 9365]
09-11 19:58:49.401: D/(30968): [G3D][cpomp_get_shader_from_blob_cache][compile_status: 1][shader_size: 0][ir_size: 9363]
09-11 19:58:49.401: D/ViewRootImpl(30968): ViewPostImeInputStage ACTION_DOWN

09-11 19:59:13.651: D/PushProtocol(31011): init m_nSocket - -5
09-11 19:59:13.671: W/JIGUANG-JCore(31011): [DNSSrvUtils] Get default ports error with IOException:bad label type
09-11 19:59:13.691: D/PushProtocol(31011): init m_nSocket - -4
09-11 19:59:13.691: D/PushProtocol(31011): init m_nSocket - -4
09-11 19:59:13.691: D/PushProtocol(31011): init m_nSocket - -4
09-11 19:59:13.691: D/PushProtocol(31011): init m_nSocket - -4
09-11 19:59:13.691: D/PushProtocol(31011): init m_nSocket - -4
09-11 19:59:13.701: D/PushProtocol(31011): init m_nSocket - -4
09-11 19:59:13.701: D/PushProtocol(31011): init m_nSocket - -4
09-11 19:59:13.701: D/PushProtocol(31011): init m_nSocket - -4
09-11 19:59:13.701: D/PushProtocol(31011): init m_nSocket - -4
09-11 19:59:16.711: D/PushProtocol(31011): init m_nSocket - -5
09-11 19:59:16.711: W/JIGUANG-JCore(31011): [ConnectingHelper] Failed with all conns.
09-11 19:59:18.931: V/ActivityThread(30968): updateVisibility : ActivityRecord{2716a9aa token=android.os.BinderProxy@172c4ca2 {com.jsyiyi.YiYiFarm/org.cocos2dx.lua.AppActivity}} show : true
09-11 19:59:19.531: W/IInputConnectionWrapper(30968): clearMetaKeyStates on inactive InputConnection
09-11 19:59:19.551: W/IInputConnectionWrapper(30968): showStatusIcon on inactive InputConnection
09-11 19:59:19.761: D/mali_winsys(30968): new_window_surface returns 0x3000,  [1440x2560]-format:1
09-11 19:59:20.381: W/IInputConnectionWrapper(30968): showStatusIcon on inactive InputConnection
09-11 19:59:22.731: V/ActivityThread(30968): updateVisibility : ActivityRecord{2716a9aa token=android.os.BinderProxy@172c4ca2 {com.jsyiyi.YiYiFarm/org.cocos2dx.lua.AppActivity}} show : false
09-11 19:59:25.741: D/PushProtocol(31011): init m_nSocket - -5
09-11 19:59:28.741: D/PushProtocol(31011): init m_nSocket - -5

#2

提供的客户端日志看不出有集成成功,也没有集成失败的报错

请开启debug,看完整的客户端日志提示信息


#3

目前问题是应用只要结束就收不到通知了,集成日志如下
logjpush.txt (2.1 MB)


#4

杀死应用进程后本来就是收不到通知的

你给的日志里面除了上面的jiguang的还是没有什么其他的信息,看了我的链接没,开启debug,获取完整的日志