braze-inc / braze-segment-swift Goto Github PK
View Code? Open in Web Editor NEWA Segment Swift destination plugin for Braze
License: Other
A Segment Swift destination plugin for Braze
License: Other
When should we expect maintenance to update to latest versions of:
I don't see any possibility to set the triggerMinimumTimeInterval
with Segment and this Braze integration. Both Analytics
and BrazeDestination
do not have this field in their api and the Braze instance within the destination is isolated. How is a Segment user supposed to access this?
The SEGAppboyIntegrationFactory
used to allow settings the ABKMinimumTriggerTimeIntervalKey
, is the access removal on purpose, is this a bug, or is there an undocumented way to do this?
When adding the BrazeDestination to Segment via add(plugin: brazeDestination)
and setting configuration.push.automation = true
, I always get the warning:
Unable to perform push notification automation steps. The SDK will not be able to automatically process push notifications.
- reason: The SDK must be initialized on the main thread to enable push automation.
Wrapping the call in main dispatch or using MainActor does not change anything. Does the integration always dispatch the Braze initialisation to a background queue?
Using the old SDK, we were advised to utilise this bit of middleware to avoid sending duplicate identify calls to Braze, which costs money. https://github.com/segmentio/segment-braze-mobile-middleware
There is no provided alternative that works with Segments new plugin system in the segment-swift package. I tried to manually implement this however the problem is as follows:
DestinationMetadataPlugin
an enrichment step to its own SegmentDestination
pluginBrazeDestination
sends its event.before
and enrichment
plugins to a specific DestinationPlugin
, however, the BrazeDestination
plugin is not running any of the plugins added to it's timeline, as it provides a different implementation of execute(event:)
. See SegmentDestination
for how they run timeline plugins before there own event code.Do you have any advice on the best approach to implementing the debounce plugin? I suggest removing the execute(event:)
implementation in BrazeDestination
and using the default provided by Segment that runs the timeline middleware. The code for adding setting the IDFA on Braze can be moved to it's own plugin
Hi!
We are currently migrating Braze to the Swift version, as well as the Segment plugin for Braze and I have a doubt: In the objC version of the library we had saveRemoteNotification
as well as saveLaunchOptions
to store any received userInfo while Braze was still uninitialized. I'm not seeing anything similar for the new destination plugin. How are we intended to proceed with this during the migration? what's your recommendation?
Thanks!
There is a crash on iOS when I integrate Braze with Segment. This happens when I open the app.
My code is below:
let configuration = Configuration(writeKey: apiKey)
.trackApplicationLifecycleEvents(true)
.flushAt(3)
.flushInterval(10)
var analytics: Analytics? = nil
analytics?.add(plugin: BrazeDestination())
Crash Details Below
Thread 3 Queue : com.braze.http (serial)
#0 0x0000000109612c00 in closure #1 in static HTTP.Client.Plugin.modify(urlComponents:) ()
#1 0x000000010955b090 in partial apply for closure #1 in static HTTP.Client.Plugin.modify(urlComponents:) ()
#2 0x000000010955de7c in closure #1 in static HTTP.Client.Plugin.modify(urlComponents:)partial apply ()
#3 0x00000001095583f8 in specialized URLRequest.init<τ_0_0>(api:plugins:) ()
#4 0x000000010955a9f0 in specialized implicit closure #1 in HTTP.Client.innerPerform(_:extraPlugins:) ()
#5 0x000000010955cb04 in specialized thunk for @escaping @callee_guaranteed (@in_guaranteed τ_0_0, @guaranteed [HTTP.Client<τ_0_0>.Plugin]) -> (@out URLRequest, @error @owned Error) ()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.