pushmeup icon indicating copy to clipboard operation
pushmeup copied to clipboard

format option should accept string or symbol.

Open grossjo opened this issue 10 years ago • 3 comments

Crashes is a string is passed for format.

grossjo avatar Jun 06 '14 20:06 grossjo

sorry, could you elaborate your problem? i can't understand what is happening to you

NicosKaralis avatar Jun 08 '14 04:06 NicosKaralis

I'm having the same thing. I'm saving my extra data as a json string in my database. So I need to pass that string in the :other section of APNS.

btate avatar Dec 07 '14 20:12 btate

Can you elaborate more? Which method are you running that gives this error?

This should work, just remember :other should be a hash because the payload needs a key, if other is a string it cannot infer a key to use (should check that on future version)

APNS.send_notification(device_token, :alert => 'Hello iPhone!', :badge => 1, :sound => 'default', 
                                :other => {:string => 'object transformed to json string'})

NicosKaralis avatar Jan 19 '15 05:01 NicosKaralis