Customization

General

Push notifications are delivered on a user’s desktop or mobile screen anytime they have their browser open, regardless of whether or not the user is on the website. These communications may be accompanied by images or gifs to generate a greater impact.

972972

Google customization

If you have custom Firebase classes, you may need to disable the following SDK services, defined in the manifest.xml.

<!-- <service
    android:name="com.indigitall.android.services.FirebaseMessagingService">
    <intent-filter>
        <action android:name="com.google.firebase.MESSAGING_EVENT"/>
    </intent-filter>
</service>
    <service
    android:name="com.indigitall.android.services.FirebaseInstanceIdService">
    <intent-filter>
        <action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
    </intent-filter>
</service> -->

If this is your case, you must add this code to ensure that notifications sent from indigitall are received and displayed.

In the service associated with the action _com.google.firebase.INSTANCE_IDEVENT add this line to register the push token.

@Override
public void onTokenRefresh() {
    FirebaseUtils.setPushToken(context);
}

In the service associated with the _com.google.firebase.MESSAGINGEVENT action, if the notification comes from indigitall , the following lines of code will cause it to be painted.

//Google
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
    if(remoteMessage.getData() != null && !FirebaseUtils.pushNotificationIndigitall(remoteMessage, context)){
        //Your Code
    }
}

Huawei Customization

In the service associated with the com.google.firebase.MESSAGINGEVENT action, if the notification comes from indigitall , the following lines of code will cause it to be painted.

//Huawei
 override fun onMessageReceived(newRemoteMessage: RemoteMessage?) {
        if(remoteMessage.getData() != null && !HMSUtils.pushNotificationIndigitall(remoteMessage, context)){
        //Your Code
    }
 }