chat-sdk / chat-sdk-ios

Chat SDK iOS - Open Source Mobile Messenger
http://sdk.chat
Other
913 stars 276 forks source link

iOS Silent push notification & Push notification service extension #471

Open albin-joseph opened 3 years ago

albin-joseph commented 3 years ago

I tried to implement silent notification and notification service extension by updating the firebase backend function in chatSDK. We push the payload from backend with two keys 'content_available: true' and 'mutable_content:true'. It's received in the app side with 'content_available: 1' and 'mutable_content:1' in apns payload respectively. But we expect it as 'content-available: 1' and 'mutable-content:1' in apps payload. To get the above change and silent notification implementation what all are the changes I have to do in the firebase backend push function(PushListener & in PushChannels). Give some direction how to implement this.