GithubHelp home page GithubHelp logo

mailchimp / mailchimp-sdk-android Goto Github PK

View Code? Open in Web Editor NEW
19.0 21.0 16.0 350 KB

Home Page: https://mailchimp.com/developer/guides/mobile-sdk/

License: Other

Ruby 1.11% Kotlin 97.81% Java 1.09%
mailchimp sdk mailchimp-sdk sdk-android android-sdk kotlin

mailchimp-sdk-android's People

Contributors

ccmailchimp avatar charlie-mcknight avatar jeremy-fox avatar joanne-song avatar josevila avatar michael-heard-mc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mailchimp-sdk-android's Issues

[BUG] Duplicate log statements for timber users in debug mode

Describe the bug
If a client application is using Timber, and they call Timber.plant() with a DebugTree in their application (which is pretty common). It will result in duplicate log statements when debug mode is enabled on the SDK.

This is caused because the SDK will plant a debug tree always when debug mode is enabled.

To Reproduce
Steps to reproduce the behavior:

  1. In a client app that is using the SDK, use Timber and call Timber.plant(DebugTree()) in Application onCreate.
  2. When initializing the Mailchimp SDK, pass true into MailchimpSdkConfiguration for debugModeEnabled.
  3. Every log the client application makes with Timber will be logged twice (not just SDK statements).

Expected behavior
The SDK will only install a Timber debug tree if the client application has not already planted a tree.

[BUG] createOrUpdateContact doesn't work

Describe the bug
When calling createOrUpdateContact API I get "Bad Request" error. Here is the complete response:

{"type":"https://mailchimp.com/developer/marketing/docs/errors/","title":"Bad Request","status":400,"detail":"User does not exist.","instance":"d7a5c5aa-4bec-2f2e-8e74-64fdc95ae896"}

Expected behavior
"If you attempt to create a contact that already exists, the contact’s information will be updated with the newly specified values."
So it should create or update the contact.

Development Environment Information:

  • Android Studio Version: Chipmunk | 2021.2.1 Patch 1
  • Mailchimp SDK Version: 1.0.0

[BUG] Please enter a short issue title here...

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Do this...
  2. Do that...
  3. See the issue...

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Development Environment Information:

  • Android Studio Version: [e.g. 4.0]
  • Mailchimp SDK Version: [e.g. 1.0]

build.gradle contents
Please paste the contents of your build.gradle below. Please redact any private information.

Additional context
Add any other context about the problem here.

[Feature] Ability to send the device language to Mailchimp

Is your feature request related to a problem? Please describe.
I'm using the mobile device sdk to update my audience tags so that I can segment my audience. I'd also like to send up the language so that my email campaigns can be sent in the right languages.

Describe the solution you'd like
It'd be great if it were possible to send up the device language (or optionally the app-specific language) through the mobile SDK.

Describe alternatives you've considered
I could set up a server instance which would use the marketing API, but this means a fair amount of overhead for something that seems like it could easily be supported.

Additional context
N/A

return 400 error while creating contact

val user = auth.currentUser
val newContact = Contact.Builder(user?.email!!)
.setContactStatus(ContactStatus.SUBSCRIBED)
.build()
val sdk = Mailchimp.sharedInstance()
sdk.createOrUpdateContact(newContact)

I am trying to creating contact using sdk in android but it always return with

400 Bad Request https://us20.api.mailchimp.com/clientapi/1.0/contacts

{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Bad Request","status":400,"detail":"User does not exist.","instance":"e3d6f848-8d24-4f68-bc61-e4c4d2e505c7"}

I have set mailchimp configuration in Application class.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.