android设备无法接收google play games通知的可能原因?
关于 起初,我认为问题出在我的代码上,尽管它毫无意义,因为它在我的模拟器上运行得很好,与tbmp骨架示例中的代码非常相似 现在我肯定认为问题出在我的设备上,所以我想知道是什么阻止了来自Google Play Games的通知 在我的模拟器中,我在通知栏中收到了大量来自Google Play Games的通知,但在物理设备中却一无所获。 该设备是Xperia L 4.2.2 编辑: 是,选中了google play services通知复选框。 这是我的舱单:android设备无法接收google play games通知的可能原因?,android,android-notifications,google-play-games,Android,Android Notifications,Google Play Games,关于 起初,我认为问题出在我的代码上,尽管它毫无意义,因为它在我的模拟器上运行得很好,与tbmp骨架示例中的代码非常相似 现在我肯定认为问题出在我的设备上,所以我想知道是什么阻止了来自Google Play Games的通知 在我的模拟器中,我在通知栏中收到了大量来自Google Play Games的通知,但在物理设备中却一无所获。 该设备是Xperia L 4.2.2 编辑: 是,选中了google play services通知复选框。 这是我的舱单: <?xml versi
<?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>
我已经尝试并搜索了所有地方,可能其他人也经历了同样的过程。在您的设备上,转到:
Settings ---> Apps ---> Google Play Services
然后检查是否设置了通知复选框。选择
Settings > Apps > Google Play Services
然后勾选通知复选框
如果仍然不起作用,请发布清单文件的
元数据
字段(同时混淆密钥) 在测试我正在开发的应用程序时,这个“bug”给我带来了很多麻烦
这与“skm”在上一次评论中所说的有关,但并不是特别提到Gmail没有同步。在我的例子中,试图同步Gmail并没有真正“启用”同步,只是同步了一次,并一直被取消同步。所以我要做的是:设置->数据使用->[三点按钮]->自动同步数据。
这样做可以实现同步,这样你就可以再次同步内容,同步所有内容,然后你就可以取消选中任何你不想同步的内容。在此之后,Google Play服务的通知将再次被接收
希望它能帮助其他人 我也有同样的问题,但在我重新同步之前,一切都像@Whyser说的那样。。。我首先从Google Play服务和Google Play游戏中清除了缓存。当我回到Google Play Games中的设置时,我看到多人游戏切换被重置!我重新启动了手机,通知开始了。你收到谷歌推送通知了吗?我想问题是我没有收到谷歌的任何通知。如果我理解正确的话,我不会明确地使用推送通知,但是google play services使用相同的方法发送通知,所以我的答案是不,我不会收到推送通知:POk,我只是不知怎么地修复了它。。我在Gmail应用程序附近,我检查了一些关于自动同步之类的东西。。奇怪的是,我必须这样做,但现在我收到通知:)是的,通知复选框已选中,这是我的元数据清单:无法在数据使用中找到同步。。它是否已被转移到设置>>>帐户>>>谷歌,可能是吗?在Android P上,正如您所说,设置>帐户>[单击您的谷歌帐户]>帐户同步>[三点]>立即同步。但是,如果您使用Android(/和Google Play服务)上的这个新版本,这个问题可能已经解决了。