Closed augustosamame closed 7 years ago
Hi. According to the Apple Docs: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/PayloadKeyReference.html#//apple_ref/doc/uid/TP40008194-CH17-SW5
I can use an action-loc-key field to customize the texts shown in action buttons in push notifications. I've been trying this:
notification = Apnotic::Notification.new(token) notification.alert = { body: alert, action-loc-key: 'Accept' }
but action-loc-key is an invalid key in Ruby. Any ideas?
Try the old "rocket" syntax:
"action-loc-key" => "Accept"
Indeed, thank you @benubois.
Hi. According to the Apple Docs: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/PayloadKeyReference.html#//apple_ref/doc/uid/TP40008194-CH17-SW5
I can use an action-loc-key field to customize the texts shown in action buttons in push notifications. I've been trying this:
but action-loc-key is an invalid key in Ruby. Any ideas?