如何在android scringo社交网络应用程序中为帖子和消息添加铃声或振动通知?
我正在我的android应用程序中使用SCRINGO SDK…以下是我的应用程序的屏幕截图。。它工作正常,但当有人发布、喜欢或评论活动、用户消息时,我不会收到通知。。我想为该应用程序设置警报铃声或振动通知,这样即使任何注册到该应用程序的用户在主屏幕上收到类似振动或警报音的通知。。。用户4喜欢你的帖子。。您收到来自用户2的新消息 我尝试过使用gcm服务,但它不起作用。。。我已经在谷歌云上制作了这个应用程序,并在scringo的仪表板上添加了项目编号和api密钥。。并编辑了mainfest,但我没有得到想要的结果。。。。以下是我的主要文件如何在android scringo社交网络应用程序中为帖子和消息添加铃声或振动通知?,android,eclipse,scringo,Android,Eclipse,Scringo,我正在我的android应用程序中使用SCRINGO SDK…以下是我的应用程序的屏幕截图。。它工作正常,但当有人发布、喜欢或评论活动、用户消息时,我不会收到通知。。我想为该应用程序设置警报铃声或振动通知,这样即使任何注册到该应用程序的用户在主屏幕上收到类似振动或警报音的通知。。。用户4喜欢你的帖子。。您收到来自用户2的新消息 我尝试过使用gcm服务,但它不起作用。。。我已经在谷歌云上制作了这个应用程序,并在scringo的仪表板上添加了项目编号和api密钥。。并编辑了mainfest,但我没有
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0"
package="com.scringo.friendz" >
<uses-permission android:name="android.permission.INTERNET"/>
您是否可能在设置服务器密钥时指定了一个IP地址(说明中说为空),从而允许所有IP 我完全按照Scringo提供的说明进行操作,在成功发送测试推送消息后,当另一个用户给我发消息时,我开始收到新的消息警报
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<permission android:name="com.scringo.friendz.permission.C2D_MESSAGE" android:protectionLevel="signature"/>
<uses-permission android:name="com.scringo.friendz.permission.C2D_MESSAGE"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<uses-feature android:glEsVersion="0x00020000" android:required="true"/>
<permission android:name="com.scringo.friendz.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
<uses-permission android:name="com.scringo.friendz.permission.MAPS_RECEIVE"/>
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Black.NoTitleBar" >
<receiver android:name="com.scringo.push.ScringoGCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE"/>
<action android:name="com.google.android.c2dm.intent.REGISTRATION"/>
<category android:name="com.scringo.friendz"/>
</intent-filter>
</receiver>
<service android:name="com.scringo.push.ScringoGCMIntentService"/>
<activity
android:label="@string/app_name"
android:name="com.scringo.friendz.MainActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver
android:name="com.scringo.push.ScringoGCMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter >
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.scringo.scringosample" />
</intent-filter>
</receiver>
<receiver android:name="com.scringo.friendz.MyReceiver">
<intent-filter>
<action android:name="com.scringo.LoginBroadcast" />
</intent-filter>
</receiver>
<service android:name="com.scringo.push.ScringoGCMIntentService" />
<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyBx8aj7JrKh-rQAD96FgeAlf8-XFLc4ELc"/>
<activity
android:label="@string/title_activity_image_view"
android:name="com.scringo.friendz.ImageViewActivity" >
</activity>
</application>
</manifest>