Problem
The MoEngage SDK does not track Push campaign impressions on Android devices or SDKs.
Solution
Push campaign impression issues can be due to several factors:
- When MoEngage SDK handles push notifications by default:
- Confirm SDK initialization. Check if the SDK is initialized with a delay.
- If the SDK is initialized with a delay, change the SDK initialization to the default configuration, as specified in the following MoEngage documentation links. Initialize the SDK in the onCreate() method of the Application class on the main thread, not in any callbacks.
- Check for network issues. Network issues (such as Private DNS or AdBlocker) might prevent data from syncing from the SDK to the MoEngage backend.
- Confirm SDK initialization. Check if the SDK is initialized with a delay.
- When MoEngage SDK handles push notifications with customizations:
- Confirm SDK initialization. Ensure the SDK is not initialized with a delay (see the point above).
- Check the PushMessageListener/PluginPushCallback code. Verify that the Builder does not interfere with the MoEngage SDK's callbacks.
- When the app handles push notifications:
- Confirm SDK initialization. Ensure the SDK is not initialized with a delay (see the point above).
- Verify push notification handling. Confirm that the app developer has notified the MoEngage SDK when a push notification is received. The App should create the push notification using the logNotificationReceived() method in the onMessageReceived() callback. For more information, refer to Push Display Handled by Application.