簡體   English   中英

在Swift中使用Flurry

[英]Using Flurry with Swift

當前是否可以使用Swift和log事件實現Flurry? 我關注了這篇文章,但沒有記錄任何事件: 如何使用swift語言將flurry集成到ios中

我導入了Flurry SDK 6.0.0,使其橋接頭正常工作,導入了“安全”和“系統配置”框架,並嘗試在“ applicationDidFinishLaunchingWithOptions”函數中記錄事件,如下所示:

Flurry.startSession("KEY HERE") //This part seems to be working since it prints to the console when it logs in
Flurry.setCrashReportingEnabled(true) 

Flurry.logEvent("Event Name")

var idDict = NSDictionary(object: "Id here", forKey: "ID")
Flurry.logEvent("Testing Swift", withParameters: idDict)

根據Flurry的支持代表的說法,嘗試記錄事件的真正問題在於我試圖在“ applicationDidFinishLaunchingWithOptions”函數中進行記錄。 顯然Flurry SDK 6.0.0存在一個問題,該問題不允許在AppDelegate中的該函數內部記錄事件。 我試着在其他地方記錄一個事件,它奏效了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM