You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the expo.dev docs, in order to handle notifications in the background on iOS, it is necessary to send the following addtional data in the payload:
"content-available": 1
I am currently achieving this by extending the PushMessage class as described in the code:
classExpoPushMessage(PushMessage):
defget_payload(self):
""" Override the get_payload method to add the content-available flag :return: """payload=super().get_payload()
payload["content-available"] =1returnpayload
I imagine that many expo-notification users would like to process background events, so the addition of another attribute would be beneficial.
The text was updated successfully, but these errors were encountered:
According to the expo.dev docs, in order to handle notifications in the background on iOS, it is necessary to send the following addtional data in the payload:
I am currently achieving this by extending the PushMessage class as described in the code:
I imagine that many expo-notification users would like to process background events, so the addition of another attribute would be beneficial.
The text was updated successfully, but these errors were encountered: