freshworks / hotline-phonegap

Hotline Phonegap Plugin
https://hotline.io
Other
6 stars 11 forks source link

clearUserData app crash iOS #6

Closed theavijitsarkar closed 8 years ago

theavijitsarkar commented 8 years ago

Code

 try{
            console.log('Hotline Cleared')
            window.Hotline.clearUserData()
        }catch(e){console.log(e)}

Error

2016-07-07 13:12:48.603 Regular.li[266:19011] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSRegularExpression enumerateMatchesInString:options:range:usingBlock:]: nil argument'
*** First throw call stack:
(0x27fda137 0x3606ac77 0x27fda07d 0x28ca32b1 0x28cb8fb5 0x28cb8d3d 0x126ffd 0x15c2c7 0x1596db 0x15bcb1 0x3bc19b 0x3bc187 0x3bfe9d 0x27f9f889 0x27f9dfa9 0x27ee99a1 0x27ee97b3 0x2f6c21a9 0x2b674695 0x1b5eb 0x36612aaf)
libc++abi.dylib: terminating with uncaught exception of type NSException
hrishikesh-p commented 8 years ago

@snowbreeze

This seems to happen when you call clearUserData before calling init atleast once. We are fixing this in the next update.

hrishikesh-p commented 8 years ago

This has been fixed in the lastest update .