immobiliare / ApnsPHP

ApnsPHP: Apple Push Notification & Feedback Provider
BSD 3-Clause "New" or "Revised" License
1.43k stars 454 forks source link

iOS Push Notifications Localization #134

Open juratitov opened 7 years ago

juratitov commented 7 years ago

Hello, I get error when setup array for message, like this - http://stackoverflow.com/questions/30353314/ios-push-notifications-localization

I remove "(string)" and work fine. Maybe you fix it or talk me other solve?

class ApnsPHP_Message row 366 if (isset($this->_sText)) { $aPayload[self::APPLE_RESERVED_NAMESPACE]['alert'] = (string)$this->_sText; // CONVERT TO STRING, REMOVE IT }