Support Topics Documentation Slack YouTube Blog

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>()
            public void handleResponse( MessageStatus response )
                System.out.println("Push Success");

            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="" />
<uses-permission android:name="" />
<uses-permission android:name="com.inasser.alqattah.permission.C2D_MESSAGE" />

    android:protectionLevel="signature" />
        <action android:name="" />
        <action android:name="" />
        &lt;category android:name=&quot;com.inasser.myapp&quot; /&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 ??</img>
How i can fix this ???


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.

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,