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
{{ message }}
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
I'm just implementing this plugin and saw my iOS app hard-crash while calling Countly.sendEvent
Upon inspection, I think it is because I didn't have eventCount properly defined on the parameter to sendEvent. After setting eventCount to 1 it stopped crashing.
I'm just implementing this plugin and saw my iOS app hard-crash while calling
Countly.sendEvent
Upon inspection, I think it is because I didn't have
eventCount
properly defined on the parameter tosendEvent
. After settingeventCount
to 1 it stopped crashing.Relevant lines:
https://github.com/Countly/countly-sdk-js/blob/master/Countly.js#L52
https://github.com/Countly/countly-sdk-js/blob/master/src/ios/CountlyCordova.m#L276
Since
eventCount
is not defined, the whole array is shifted so the iOS routine crashes by assuming an index in the array that doesn't exist.I think it's safe to just assume
eventCount
to be1
in Countly.js there if it is not defined.The text was updated successfully, but these errors were encountered: