wingify / vwo-ios-sdk

VWO iOS SDK
https://developers.vwo.com/reference#ios-introduction
Other
4 stars 3 forks source link

pendingMessage is always nil #4

Closed swapnilagarwwal closed 7 years ago

swapnilagarwwal commented 7 years ago

pendingMesssage is nil, because of this messages are not getting added into this.

I believe this is happening because: _pendingMessages = [NSMutableArray arrayWithContentsOfURL:VAOFile.messagesPath];

arrayWithContentsOfURL: returns an array containing the contents specified by aURL. Returns nil if the location can’t be opened or if the contents of the location can’t be parsed into an array.

https://github.com/wingify/vwo-ios-sdk/blob/3323ba594aef6dac127f2e6f41c3adccc10023b5/vwo-sdk/VAOAPIClient.m#L45

kaunteya commented 7 years ago

Fixed in 2.0.0-beta4