2

我的应用程序没有在 GCM 上注册某些设备。HTC explorer , Galaxy S2 是未注册的设备。但是 LG optimus 4x hd 、 Galaxy s4 、 samsung duos 、 y 是它在 GCM 中注册的设备。我正在发布我的清单。任何帮助,将不胜感激。

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.suremcx"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="10"
        android:targetSdkVersion="15" />

    <permission
        android:name="com.suremcx.permission.C2D_MESSAGE"
        android:protectionLevel="signature" />

    <uses-permission android:name="com.suremcx.permission.C2D_MESSAGE" />
    <!-- App receives GCM messages. -->
    <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
    <!-- GCM requires a Google account. -->
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <!-- Keeps the processor from sleeping when a message is received. -->
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.GET_TASKS" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <application
        android:icon="@drawable/ic_om"
        android:label="@string/app_name"
        android:name="com.suremcx.utils.MyApplication"
        android:theme="@android:style/Theme.Black.NoTitleBar" >
        <activity
            android:name="com.suremcx.activity.MainActivity"
            android:screenOrientation="portrait" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="com.suremcx.activity.MenuActivity" android:screenOrientation="portrait"></activity>
        <activity android:name="com.suremcx.activity.CustomChatActivity" android:screenOrientation="portrait"></activity>
        <activity android:name="com.suremcx.activity.TipsFragment" android:screenOrientation="portrait"></activity>


        <receiver
            android:name="com.suremcx.activity.GcmBroadCastReceiver"
            android:permission="com.google.android.c2dm.permission.SEND" >
            <intent-filter>
                <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                <category android:name="com.suremcx" />
            </intent-filter>
        </receiver>

        <service android:name="com.suremcx.activty.PushNotificationService" />

    </application>

</manifest>
4

1 回答 1

0

您在中拼错了“活动”com.suremcx.activty.PushNotificationService

于 2014-01-15T02:13:37.443 回答