dengage-tech / dengage-react-sdk

MIT License
2 stars 3 forks source link

Exception 'sendDeviceEvent:withData:is not a reconizedObjective-C method.' #2

Closed VinitBhavsar closed 2 months ago

VinitBhavsar commented 3 years ago

Platform: iOS

Error: Exception 'sendDeviceEvent:withData:is not a reconizedObjective-C method.' was thrown while invoking sendDeviceEvent on Target DengageRN with Params

I Skipped the 3rd Step Of iOS Specific Extra Step.

@whitehorse-technology @KamranKhankhail

VinitBhavsar commented 3 years ago

@objc(SendDeviceEvent:withData:) func sendDeviceEvent (_ tableName: String, withData: NSDictionary) -> Void { do { print(withData) try Dengage.SendDeviceEvent(toEventTable: tableName, andWithEventDetails: withData as! NSMutableDictionary) } catch { print("Unexpected search error: (error)") } }

SendDeviceEvent:withData is not indicated in Dengage.m file

@muhammed-wh @KamranKhankhail

VinitBhavsar commented 3 years ago

@KamranKhankhail it seems updated in the recent commit.