Closed RutgerVleuten closed 1 year ago
Hi @RutgerVleuten,
The static variable braze
in the sample app is intended to be an example to show how you can add customization in the iOS layer directly (e.g. by following these docs to add a delegate).
However, the braze
instance is held in BrazePlugin.swift and the public APIs are already accessible via the braze_plugin.dart
. If you do not want to do any customization in the iOS layer and wish to remove the static variable from your AppDelegate, that is up to you.
Thanks!
Maybe I needed to add that the confusing part for me was that the same name was used for the let constant on line 34.
Ah, I see what you are referencing. The static
braze instance isn't used or even set via
AppDelegate.braze = braze
and there is no example using BrazeInAppMessageUIDelegate
, so it is confusing. I'll remove it from the sample app to avoid further confusion - thanks for pointing this out!
@hokstuff, ticket has closed status while it's not implemented yet.
This change has been made internally and is scheduled in the next release, which will include a few other bugfixes (that are in progress) as well.
In the AppDelegate of the example app static variable of type Braze (line 15) is never used.