davide-scalzo / react-native-mixpanel

A React Native wrapper for Mixpanel tracking
MIT License
455 stars 195 forks source link

In-app messaging not working on Android #209

Open abeddow91 opened 4 years ago

abeddow91 commented 4 years ago

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

lorenc-tomasz commented 4 years ago

@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

abeddow91 commented 4 years ago

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!

DirleiDionisio commented 4 years ago

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

abeddow91 commented 4 years ago

afraid not!

bruscantini commented 4 years ago

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

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