amplitude / Amplitude-Kotlin

Amplitude Kotlin SDK
MIT License
27 stars 10 forks source link

How to make use setOffline flag #133

Closed satyajitvure91 closed 1 year ago

satyajitvure91 commented 1 year ago

Summary

On the amplitude android sdk there's a way to setOffline to either true or false on the amplitude instance, how can I do the same in the new sdk?

Mercy811 commented 1 year ago

Hi @satyajitvure91, you can set optOut to true following here. I am writing a migration doc for Android and will include this too.

satyajitvure91 commented 1 year ago

I was following this discussion and trying to achieve same output as the OP is trying here. I see that we can setOffline on the Android SDK but couldn't find a way on this.

Mercy811 commented 1 year ago

Hi @satyajitvure91, thanks for your clarification. Unfortunately, the latest Android Kotlin SDK doesn't support setOffline(). But I can see it's a popular method. Put an enhancement label and will sync and prioritize with the team.

Mercy811 commented 1 year ago

Hi @satyajitvure91, we just had a team synced and will add this method before officially deprecating old/maintenance Android SDK, but no ETA currently (probably Q4/ end of this year).

satyajitvure91 commented 1 year ago

Thanks for the update, we will use the android sdk until then.

Mercy811 commented 7 months ago

Hi @satyajitvure91, v.1.13.0 supports offline mode now.