You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// If `true`, sends a "newSessionBegan" Signal on each app foreground or cold launch////// Defaults to true. Set to false to prevent automatically sending this signal.publicvarsendNewSessionBeganSignal:Bool= true
It relies on UIApplication.willEnterForegroundNotification, and, for some reason, allegedly since iOS 14 for apps that do not support SceneDelegate, this notification is not fired on launch, puzzlingly. And considering that there are still many such apps like it out there, I think this should be addressed.
I've made a simple minimal example project that reproduces this issue. Setting a breakpoint at func processSignal(_ signalType: TelemetrySignalType, for clientUser: String? = nil, floatValue: Double? = nil, with additionalPayload: [String: String] = [:], configuration: TelemetryManagerConfiguration) will quickly show that the event is not being fired
Quoting the code:
It relies on
UIApplication.willEnterForegroundNotification
, and, for some reason, allegedly since iOS 14 for apps that do not supportSceneDelegate
, this notification is not fired on launch, puzzlingly. And considering that there are still many such apps like it out there, I think this should be addressed.I've made a simple minimal example project that reproduces this issue. Setting a breakpoint at
func processSignal(_ signalType: TelemetrySignalType, for clientUser: String? = nil, floatValue: Double? = nil, with additionalPayload: [String: String] = [:], configuration: TelemetryManagerConfiguration)
will quickly show that the event is not being firedTelemetryDeckNewSessionReproduce.zip
Let me know if you have any questions
The text was updated successfully, but these errors were encountered: