Giter Site home page Giter Site logo

Comments (10)

tapashmajumder avatar tapashmajumder commented on August 23, 2024 1

I am going to close this issue now since it is taken care of in the beta release.

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

We are currently working on a big revamp of in-app messages. Please check out the 'in-app messages' section of README.md for new changes to in-app.

We are ready to roll out a beta version of in-app messages which will take care of this and much more. Would you be interested in that?

from swift-sdk.

vrutberg avatar vrutberg commented on August 23, 2024

Yeah, that would be great. How do I access the beta version?

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

@vrutberg Use tag 6.1.0-beta1 from Github in your app. Sample Podfile is below

# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'

# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

target 'iOS Demo' do
  pod 'Iterable-iOS-SDK', :git => 'https://github.com/Iterable/swift-sdk.git', :tag => '6.1.0-beta1'

  target 'iOS DemoTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'iOS DemoUITests' do
    inherit! :search_paths
    # Pods for testing
  end
  
end

target 'richMediaAttachments' do
    pod 'Iterable-iOS-AppExtensions', :git => 'https://github.com/Iterable/swift-sdk.git', :tag => '6.1.0-beta1'
end

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

@vrutberg If you send me your email address to tapash at iterable dot com I can add you to our Slack channel for beta feedback etc.

from swift-sdk.

vrutberg avatar vrutberg commented on August 23, 2024

Great. I'm using Carthage but the setup should be similar. I will try it out and keep you posted! Thanks!

from swift-sdk.

vrutberg avatar vrutberg commented on August 23, 2024

Migrating to the beta version seems quite straight-forward. Just as a sanity check, could you verify that this method of displaying in-app messages looks good to you?

func displayInAppMessages(completionHandler: @escaping () -> Void) {
    let messages = IterableAPI.inAppManager.getMessages()

    guard let first = messages.first else {
        completionHandler()
        return
    }

    IterableAPI.inAppManager.show(message: first, consume: true, callback: { _ in
        completionHandler()
    })
}

The idea is that we want to show one in-app message at a time. Please note that I'm also setting the inAppDelegate on the IterableConfig object and returning .skip in its delegate method.

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

Yes this looks great.

You may also want to consider using IterableCustomActionDelegate or IterableURLDelegate to handle clicks in your in-app instead of the completionHandler. See here https://github.com/iterable/swift-sdk#when-user-clicks-a-buttonlink-in-the-in-app-message

from swift-sdk.

vrutberg avatar vrutberg commented on August 23, 2024

Great! Alright, thanks for the tip. I will look into that.

Do you have any expected release date for the new version?

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

Depends on whether we find any serious bugs in our beta. Hopefully in a few weeks.

from swift-sdk.

Related Issues (20)

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.