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
No notifications in background on iOS 10 (Swift) #103
Comments
I don't receive any messages in foreground, just background. :( |
I struggled with this for days, then compared to the Objective-C sample that worked properly. The iOS 10 version is missing the |
Thank you @roughike, you've saved me at least three gray hairs. |
@pimnijman Glad I helped! Maybe add a 👍 reaction to the PR and/or a comment saying that it fixed the problem for you as well. |
I followed this guide and it worked. |
@sir-gon Yeah, with Objective-C there's no problem. Try the Swift sample and you know what we're talking about. @pimnijman Maybe change the title to say this happens with the Swift sample to avoid confusion and be more specific? |
I'm having a similar issue, but with my app I'm migrating from Swift to Objective C (React Native). Pushes work on fresh install for Obj C but after migrating from Swift to Obj C, no pushes come through. I get all the tokens (APNS and FB) though and use the fcm console to send the push. |
I've implemented everything according to the guides and this example: https://github.com/firebase/quickstart-ios/blob/master/messaging/FCMSwift/AppDelegate.swift
I do receive messages when my app is in the foreground, but I don't when it's in the background.
When I remove the iOS 10 specific code like this …
… everything works as expected.
Please advice. All help is greatly appreciated.
The text was updated successfully, but these errors were encountered: