Comments (10)
I am going to close this issue now since it is taken care of in the beta release.
from swift-sdk.
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.
Yeah, that would be great. How do I access the beta version?
from swift-sdk.
@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.
@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.
Great. I'm using Carthage but the setup should be similar. I will try it out and keep you posted! Thanks!
from swift-sdk.
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.
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.
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.
Depends on whether we find any serious bugs in our beta. Hopefully in a few weeks.
from swift-sdk.
Related Issues (20)
- Mobile App inbox: Basic onClick message delegate is missing. HOT 1
- EXC_BAD_ACCESS KERN_INVALID_ADDRESS Crash when syncing message dictionary in InAppManager
- handle(universalLink) does not behave as described. HOT 2
- If initial JWT token request fails, SDK doesn't ever request a new one HOT 2
- In-app messages black background does not expand to full height of phone screen HOT 1
- 6.4.12 contains semver-breaking API change HOT 2
- Type 'ReactIterableAPI' does not conform to protocol 'IterableAuthDelegate' HOT 1
- If the in-app message's position not being set to "full", the in-app will auto disappear with animation and app freezes on some devices HOT 2
- SPM Integration HOT 1
- Crash in RequestHandler.swift with InternalIterableAPI Initialization HOT 11
- InAppDisplayer: We need a way to set the `topViewController`
- [Bug]: crash on NWPathMonitor HOT 1
- After updating Iterable to 6.4.17 Circle CI pipeline is failing - ❌ error: Build input file cannot be found: '/Users/distiller/project/Pods/Iterable-iOS-SDK/swift-sdk/Internal/DependencyContainerProtocol.swift'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'Iterable-iOS-SDK' from project 'Pods')
- Add Privacy Manifest HOT 6
- Image as Attachment in Push Notification payload doesn't get displayed
- Rename the package sdk something different than `swift-sdk` HOT 4
- Add OnSuccessHandler and OnFailureHandler to logoutUser() function HOT 1
- Swift access race in IterableSDK.Pending.onSuccess
- Making a `getMessages` once per day
- Thread Performance Checker failure
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-sdk.