-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Push notifications #315
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
Comments
Xcode 9 cant make it work also! tried messaging 2.0.0, 2.0.2 and 2.0.3 |
Can you both include more information on how you've set up Messaging? |
This solved the problem
Before this blokc was outside
like this
it worked with XCode 8 and lower versions. There is some thread thing going on maybe.... |
There is a bug which has been fixed internally but hasn't been released yet, that is likely causing the issue. For now, as a workaround you should always just call |
thx |
Also fixed for me, thanks ! |
It's not fixing it for me. The messages don't get delivered if the app is in the background on iOS 11. |
@berlininsomniac Here is my fix in Swift if it can help you : func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// [START set_messaging_delegate]
Messaging.messaging().delegate = self
// [END set_messaging_delegate]
// Register for remote notifications. This shows a permission dialog on first run, to
// show the dialog at a more appropriate time move this registration accordingly.
// [START register_for_notifications]
if #available(iOS 10.0, *) {
// For iOS 10 display notification (sent via APNS)
UNUserNotificationCenter.current().delegate = self
let authOptions: UNAuthorizationOptions = [.alert, .badge, .sound]
UNUserNotificationCenter.current().requestAuthorization(
options: authOptions,
completionHandler: {_, _ in })
} else {
let settings: UIUserNotificationSettings =
UIUserNotificationSettings(types: [.alert, .badge, .sound], categories: nil)
application.registerUserNotificationSettings(settings)
}
application.registerForRemoteNotifications()
// [END register_for_notifications]
FirebaseApp.configure()
return true
} |
@berlininsomniac Not receiving messages in the background usually indicates an issue with the app configuration for APNs (i.e. check if There is also a known issue in iOS 11.0 where silent notifications ( |
@rsattar It doesn't work anymore, without changing my code ... Waiting the fix release .... |
@Aurazion Confirming that [email protected] is fully operational when you add Waiting for the final fix though, kinda ugly solution. |
FWIW, if you're locking temporarily to |
I can confirm that downgrading FirebaseInstanceID to 2.0.0 reenables pushes on iOS 11. |
How to downgrade the FirebaseInstanceID? |
Try |
|
Same for me with |
Fix released today in Firebase 4.3.0, FirebaseMessaging 2.0.4, and FirebaseInstanceID 2.0.4 |
I'm hitting this same issue today on: Function boringssl_context_get_peer_sct_list: line 1757 received sct extension length is less than sct data length |
Indeed, it came back again.
|
Please don't add 'me too' comments to closed issues. If you'd like to indicate you're also suffering from the same open issue, use GitHub's add a reaction feature. If it's a closed issue, try the solutions that have been listed and comment with what steps you took and what errors occurred. @dgaedcke, your issue is not related to this issue and does not contain enough information to debug. @PaulRBerg, your issue is not related to this issue. See #490 |
With FirebaseInstanceID 2.0.3 push notifications don't work, but with 2.0.0 they do.
The text was updated successfully, but these errors were encountered: