hi guys,
i’ve gone throw all backendless push notification setup AND it WORKS fine ,
I can send push notification from android device to another ,
Here is my method to send push notification
DeliveryOptions deliveryOptions = new DeliveryOptions();
deliveryOptions.addPushSinglecast( theMember.getUserDeviceID() );
PublishOptions publishOptions = new PublishOptions();
publishOptions.putHeader( "android-ticker-text", "You just got a private push notification!" );
publishOptions.putHeader( "android-content-title", "Title" );
publishOptions.putHeader( "android-content-text", "Content" );
Backendless.Messaging.publish( "Message",
publishOptions, deliveryOptions, new BackendlessCallback<MessageStatus>()
{
@Override
public void handleResponse( MessageStatus response )
{
System.out.println("Push Success");
}
@Override
public void handleFault( BackendlessFault fault )
{
Toast.makeText( getContext(), fault.getMessage(), Toast.LENGTH_SHORT ).show();
}
} );
and AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.intent.REGISTRATION" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="com.inasser.alqattah.permission.C2D_MESSAGE" />
<permission
android:name="com.inasser.myapp.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<receiver
android:name="com.backendless.push.BackendlessBroadcastReceiver"
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.inasser.myapp" />
</intent-filter>
</receiver>
<service android:name="com.backendless.push.BackendlessPushService" />
AND i’ve created a push notification icon with Transparent BUT I DON’T KNOW HOW TO CHANGE THE ICON ??http://support.backendless.com/public/attachments/4ff8e00c374e56bab89026124790b4c7.png</img>
How i can fix this ???