davide-scalzo/react-native-mixpanel

In-app messaging not working on Android

abeddow91 opened this issue · 5 comments

Hi team,

I'm currently unable to get in-app messages delivered to Android devices. They are working fine on iOS.

As far as I can see, Android is working fine apart from this, tracking events and users. The test user is shown in Mixpanel in the in-app messaging dashboard as being seen recently but the message never gets delivered.

We are running the following:

react-native-cli: 2.0.1
react-native: 0.59.10
react-native-mixpanel: 0.0.16

Appreciate we are a little behind on the react-native-mixpanel version but is there anything we can try here without upgrading (or with)? Looks like react-native-mixpanel@0.0.16 still uses mixpanel sdk which is 5+ which meets requirements for in-app messaging.

Any help would be hugely appreciated.

Thanks,
Anna

@abeddow91 Did you add <activity android:name="com.mixpanel.android.takeoverinapp.TakeoverInAppActivity" android:theme="@style/com_mixpanel_android_TakeoverInAppActivityTheme"/> to AndroidManifest.xml file.?

https://developer.mixpanel.com/docs/android-inapp-messages

Hi @lorenc-tomasz

yep i did but still nothing being delivered here. Works fine on ios.

Is there anything you can think that could be blocking here?

Thanks!

Hi @abeddow91, did you find a solution? I'm having the same issue.

afraid not!

Have you tried explicitly adding mixpanel SDK in app's build.grade?

dependencies {
    implementation 'com.mixpanel.android:mixpanel-android:5.+'
}