🐛 Bug Report
Summary of Issue
After upgrade to Expo 40 and iOS, I have a problem with sending Push Notifications using
ExpoPushToken. The issue happens only on a standalone app, in Expo client everything works fine.
During the debug process, I had tried to use
DevicePushToken and I managed to send and receive notifications (using
node-apn with keys from
expo fetch:ios:certs). The device token is
When I call exp.host/getExpoPushToken with
deviceToken above I receive token
ExponentPushToken[pXoWnIHNZytciNSC7M0LtC]. The notifications sent by this
ExpoPushToken do not appear on iOS device.
IMO, the standalone build and certificates are just fine, as I manage to receive notifications using
node-apn. Most probably the issue is somewhere in
exp.host/--/api/v2/push/send or in the method that “links” ExpoPushToken and DeviceToken.
Can you check if there were any changes on expo.api that can cause the following regression?
I’d appreciate any help here.
Environment – output of
expo diagnostics & the platform(s) you’re targeting
Expo CLI 4.0.13 environment info:
OS: macOS 10.15.7
Shell: 3.2.57 – /bin/bash
Node: 12.19.1 – /usr/local/bin/node
Yarn: 1.22.10 – /usr/local/bin/yarn
npm: 6.14.8 – /usr/local/bin/npm
Watchman: 4.9.0 – /usr/local/bin/watchman
CocoaPods: 1.9.3 – /usr/local/bin/pod
Platforms: iOS 14.2, DriverKit 20.0, macOS 11.0, tvOS 14.2, watchOS 7.1
API Levels: 28, 29, 30
Build Tools: 28.0.3, 29.0.2
System Images: android-24 | Google APIs Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-R | Google APIs Intel x86 Atom
Android Studio: 4.0 AI-193.69126.96.36.19926763
Xcode: 12.2/12B45b – /usr/bin/xcodebuild
expo: 40.0.0 => 40.0.0
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2
Expo Workflow: managed