-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
39: Notifications.getExpoPushTokenAsync hanging indefinitely in TestFlight #10369
Comments
what is |
@brentvatne I took a snipped from the docs as below. However, that one also caught my eye and I tried to invoke the method without passing it, but the result was the same:
|
To make things worse: This is not hanging on all devices. So the device in question:
Another testflight install on another device works, also across restarts (for now) It's probably nothing but: I did an ios build with the |
Hey @hardcodet!
I hope any of the tips may end up helpful to you. 🤗 |
Hi there Stanislaw Thanks for taking the time to put all this together! The device in question at some point started working again after a few releases (no code changes around the push notification tokens though), and I haven't seen the issue again. It can't have been a temporary connectivity issue though, since it reliably failed over a long period of times (we're talking days here). Since it's working now, I can't really help in diagnosing this, I'm afraid. The only thing that caught my eye was the (slightly mysterious ;) tip about the SIM card since the test device doesn't have one. But that still wouldn't explain why it resumed working at some point as if nothing ever happened. Feel free to close this issue for now - I can post again if the issue creeps back in with a subsequent release. Thanks again! |
Hey, thank you for responding! I'm glad it's sorted out now! I'll let myself close this issue with a pull request adding information on different situations which may impact push token retrieval to a new docs section "Common gotchas / known issues" in a second! 🙂 PS. Yeah, I agree the SIM card tip is a bit mysterious. 😃 |
The below single line is creating a problem. token = (await Notifications.getExpoPushTokenAsync()).data; with the below. |
I got the same error, using managed workflow. Did you find the cause @devcoderbuzz ? |
@devcoderbuzz and @pors, I am getting the same error. Searching for an explanation. Expo 46. |
@TheRealMikeD I'm also on SDK 46. I only have the problem with a development build, not with TestFlight. So I choose to ignore it. Notifications work fine on TF. |
@pors, thanks - that's good to know. I actually found a usable workaround for this issue in the dev environment, which I posted here: #18570 (comment) |
same issue here with SDK 46 when trying out a development build.. |
Expo 39, Managed App
This used to work on the previous build: Push notification token retrieval seems to be broken in iOS: My app simply is hanging without an error, and I traced it back to this call:
my log shows progress until the
.33
, and then nothing happens anymore. Any idea what's happening?Btw, what i tried so far:
The text was updated successfully, but these errors were encountered: