I integrated push notifications with FCM as described in the docs. SDK: 27.0.0
- When Im sending push via nodejs SDK it works from my dev (nodejs) but when I run the code in AWS Lambda Im randomly getting “request to https://exp.host/--/api/v2/push/send failed, reason: socket hang up” the whole request takes less then 100ms so its not timeout issue.
Is there any other API to send push to Expo server?
- In times when it works Im getting a push with Expo icon, and not my application icon.
- Notifications always seen in Android systray both when app in Foreground and Background. I tried sending with body and without, but its the same result. How can I omit showing systray if app is in foreground as it default behaviour in many apps?
- I tried using Notifications.getDevicePushTokenAsync instead and send push directly from FCM console, in this case I got 2 notifications with same content: one with Expo Icon and one with my app Icon.
So how can I use Notifications.getDevicePushTokenAsync and still get one notification?