We have integrated Fabric in our application. We observed that dashboard is not updating if we initialise fabric object other than didFinishLaunch.. I should not initialise in didFinishLaunchingWithOptions because before initialising I have to show OptIn page for the user. So nn his acceptance only I should initiate the Fabric.. Can you help me in this?
我们在我们的应用程序中集成了Fabric。我们观察到,如果我们初始化比didFinishLaunch ..我不应该在didFinishLaunchingWithOptions因为初始化我必须表明选择启用页面为用户之前初始化等织物的对象仪表盘没有更新。因此,只有他接受我才能发起面料..你可以帮助我吗?
Following is the code I added for initialising.
以下是我为初始化添加的代码。
[[Fabric sharedSDK] setDebug:YES];
[Fabric with:@[CrashlyticsKit]];
2 个解决方案
#1
2
I have contacted Fabric support, it seems their logic is completely based on app life cycle and it work properly if we initialise the Faric object other than didFinishLauch method..
我已经联系了Fabric支持,看起来他们的逻辑完全基于应用程序生命周期,如果我们初始化除了didFinishLauch方法之外的Faric对象,它可以正常工作。
So we ended up changing the logic in my app.. We are initialising Fabric for first time even if user not yet accepted in OptIn page, but not logging any custom events if he not opted-in. And then from the second launch it works as per his decision on OptIn page.
所以我们最终改变了我的应用程序中的逻辑。即使用户尚未在OptIn页面中接受,我们也是第一次初始化Fabric,但如果他没有选择加入,则不会记录任何自定义事件。然后从第二次发布开始按照他在OptIn页面上的决定进行工作。
Thanks all for responding.
谢谢大家的回复。
#2
0
Please try this code in didFinishLaunching:
请在didFinishLaunching中尝试此代码:
[Fabric with:@[[Crashlytics class]]];
it's may be help you..
它可能会帮助你..
#1
2
I have contacted Fabric support, it seems their logic is completely based on app life cycle and it work properly if we initialise the Faric object other than didFinishLauch method..
我已经联系了Fabric支持,看起来他们的逻辑完全基于应用程序生命周期,如果我们初始化除了didFinishLauch方法之外的Faric对象,它可以正常工作。
So we ended up changing the logic in my app.. We are initialising Fabric for first time even if user not yet accepted in OptIn page, but not logging any custom events if he not opted-in. And then from the second launch it works as per his decision on OptIn page.
所以我们最终改变了我的应用程序中的逻辑。即使用户尚未在OptIn页面中接受,我们也是第一次初始化Fabric,但如果他没有选择加入,则不会记录任何自定义事件。然后从第二次发布开始按照他在OptIn页面上的决定进行工作。
Thanks all for responding.
谢谢大家的回复。
#2
0
Please try this code in didFinishLaunching:
请在didFinishLaunching中尝试此代码:
[Fabric with:@[[Crashlytics class]]];
it's may be help you..
它可能会帮助你..