Android ... Receiving push notification with white blank push notification icon !?

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">
    &lt;intent-filter&gt;
        <action android:name="com.google.android.c2dm.intent.RECEIVE" />
        <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
        &lt;category android:name=&quot;com.inasser.myapp&quot; /&gt;
    &lt;/intent-filter&gt;
&lt;/receiver&gt;

&lt;service android:name=&quot;com.backendless.push.BackendlessPushService&quot; /&gt;

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&lt;/img&gt;
How i can fix this ???

4ff8e00c374e56bab89026124790b4c7.png

Hello, Nasser!

Unfortunately, your issue is not related to Backendless. The way how push notification is rendered is not controlled by Backendless API.
I can offer you to try to generate a chat sample for android using codegeneration feature. Push receiver there contains code that uses custom icon for received notification.
regards,
Alex

hi Alexander,

thanks for responding ,

but if we take (Parse mBaas) as example they give a way to override getSmallIconId function to replace small icon…

why i can’t do that in backendless ?

You can set the custom small icon for the push notification. Please follow the steps described here:

Best Regards,
Maksym