Hi guys,
I am sending some custom data in the local notification.
It works find on Android device. But somehow on iOS, it shows an error or will not show the notification. The main issue is having a ‘complex custom data table’. It works if the table is simple.
On iPad, it will have this error (when sent thru remote notification then passed to local notification ). This error will not be shown if sent purely as local notification :
NSInvalidArgumentException: unable to serialize userInfo: ......
Sample problem code :
local options = { alert = 'New notification by me1 ' .. os.time() , badge = 2, custom = { showUrl = {url = { 'http://ya.com', 'http:..yahoo.com' } }, alertsHere = { alertOptions = { 'google' } }, message = 'Choose', }, } local notificationId = g\_notifications.scheduleNotification( 1, options )
Please advise. Thanks