Open adeel-7peaks opened 8 months ago
+1
Could be an issue related to project setup?
@adeel-7peaks We fixed!!!
Review point 6 on the sdk setup: https://developers.piwik.pro/en/latest/data_collection/mobile/Piwik_PRO_SDK_for_iOS.html#sdk-integration-swift-package-manager
I had to use
-all_load
as a linker flag, as the
-ObjC
flag was not enough.
I have implemented PiwikPro sdk for iOS and try to send screen_view event.
Following is the code is set in AppDelegate.swift file
When i try to log the screen event using its new object PiwikTracker()
PiwikTracker().sendView(view: screen_name)
Nothing happens on "Debug Tracker"
And when i try to log using its sharedInstance()
PiwikTracker.sharedInstance()?.sendView(view: "screen_name")
the application crashes with follwing error
Is there anything I am missing?
And btw the
sendView
is being called from a UIViewController's viewDidLoad() and viewDidAppear() methodsThanks.
PS: I have setup sdk using Pods and the version is
PiwikPROSDK (1.2.3)