Android设备无法接收谷歌播放游戏通知的可能原因?

skm*_*skm 5 android android-notifications google-play-games

关于TBMP Skeleton:为什么在我的物理设备上没有调用onTurnBasedMatchReceived和onInvitationReceived?

最初我认为这个问题与我的代码有关,即使它没有任何意义,因为它在我的模拟器上运行得很好+它与tbmp骨架样本中的非常相似.

现在我肯定认为问题出在我的设备上,所以我想知道什么可能阻止来自Google Play游戏的通知.

在我的模拟器中,我在通知栏中收到了来自Google Play游戏的大量通知,但物理设备中没有任何内容.该设备是Xperia L 4.2.2.

编辑:是的,选中了Google Play服务通知复选框.这是我的清单:

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

        <uses-sdk
            android:minSdkVersion="14"
            android:targetSdkVersion="19" />

        <application
            android:allowBackup="true"
            android:icon="@drawable/ic_launcher"
            android:label="@string/app_name"
            android:theme="@style/AppTheme" >
            <meta-data android:name="com.google.android.gms.games.APP_ID"
                android:value="@string/app_id" />
            <meta-data android:name="com.google.android.gms.version"
                android:value="@integer/google_play_services_version"/>
            <activity
                android:name="PACKAGE_NAME.MYACTIVITY"
                android:label="@string/app_name" >
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />

                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
        </application>

    </manifest>
Run Code Online (Sandbox Code Playgroud)

我到处尝试和搜索过这个,也许其他人经历了同样的事情.

Beh*_*nam 0

在您的设备上转至:

 Settings ---> Apps ---> Google Play Services
Run Code Online (Sandbox Code Playgroud)

然后检查通知复选框是否已设置。