expo-server-sdk-python icon indicating copy to clipboard operation
expo-server-sdk-python copied to clipboard

Silent notifications on android

Open areksiekiera opened this issue 4 years ago • 1 comments

Hi,

I'm trying to push a silent notification which seems to work on ios (standalone expo 42 app) but the same doesnt seem to work on android (also standalone expo 42 app).

from exponent_server_sdk import (
    DeviceNotRegisteredError,
    PushClient,
    PushMessage,
    PushServerError,
    PushTicketError,
)

extra = {'content-available': 1}

// this doesnt raise notification on iphone, as expected
PushClient().publish(PushMessage(to=ios_token,data=extra))

// both raise empty notification on android 9
PushClient().publish(PushMessage(to=android_token,data=extra))
PushClient().publish(PushMessage(to=android_token))

What am I doing wrong here ?

areksiekiera avatar Oct 11 '21 09:10 areksiekiera

is this still an issue? I'm not sure I've seen this before

julianpacker avatar Jan 20 '22 20:01 julianpacker