In-app messages

Unlike push notifications, in-app messages work while the app is open, so you can show content with less disruption to the user. DFINERY's in-app messages work based on events and are displayed automatically.

In-app messaging hardware acceleration

You need to enable hardware acceleration to make the display look the same as it does on the console and make the animations run smoothly.

Application level

Enable hardware acceleration for your entire application by adding the following attribute to the tag in your Android manifest file:

<application android:hardwareAccelerated="true" />

Activity level

You can also control this on an individual Activity level. To enable or disable hardware acceleration at the Activity level, android:hardwareAcceleratedyou can use the element's properties.

<application>
    <activity />
    <activity android:hardwareAccelerated="true" />
</application>

Setting custom parent view for in-app messages

SDK will automatically find the topmost view of the Activity that is being displayed and display the in-app message. If you do not use the automatic setting, setCustomInAppMessageParentView()you can use to set the parent view to display manually.

Dfinery.getInstance().setCustomInAppMessageParentView(parentView);

If you register a deep link in the in-app message button, the Activity set in the deep link will be executed when clicked.

For information on how to associate a deep link with an Activity, see Creating App Content Deep Links on Android.

To get deep link data from an Activity, you can get the data as follows:

public class MainActivity extends AppCompatActivity{
    @Override
    public void onCreate() {
        super.onCreate();
        if(getIntent() != null && getIntent().getData()!=null){
            Uri deeplink = getIntent().getData();
        }
    }
}

Last updated