Skip to content
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

Remove useMessagingDelegateForDirectChannel property #2711

Merged
merged 12 commits into from
Apr 4, 2019

Conversation

charlotteliang
Copy link
Contributor

[FCM I/O breaking change] Remove useMessagingDelegateForDirectChannel property

All direct channels (non-apns) messages will be handled by messaging:didReceiveMessage:. Previously iOS 9 and below is handled in application:didReceiveRemoteNotification:fetchCompletionHandler: and this behavior can be changed by setting useMessagingDelegateForDirectChannel to true. Now that all messages by default are handled in messaging:didReceiveMessage:. This boolean value is no longer needed.

If you already have useMessagingDelegateForDirectChannel= YES, or handle all your direct channel messages in messaging:didReceiveMessage:. This change should not affect you.

@charlotteliang charlotteliang added this to the Firebase 6 milestone Apr 2, 2019
Copy link
Member

@ryanwilson ryanwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nits but mostly LGTM!

Firebase/Messaging/FIRMessagingReceiver.m Outdated Show resolved Hide resolved
Firebase/Messaging/FIRMessagingReceiver.m Outdated Show resolved Hide resolved
Firebase/Messaging/FIRMessagingReceiver.m Show resolved Hide resolved
Firebase/Messaging/FIRMessagingReceiver.m Outdated Show resolved Hide resolved
ryanwilson and others added 4 commits April 2, 2019 22:33
* Add quick instructions for building the Zip.

Added some instructions to build the zip. Will expand further with releasing information.

* Further argument instructions, formatting.

* Split out required arguments from optional arguments.

* Remove trailing whitespace.
Copy link
Member

@ryanwilson ryanwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@ryanwilson ryanwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry - please fix the Travis tests before submitting.

@charlotteliang
Copy link
Contributor Author

Not sure the travis failure in Function is related to us:

Creating functions in /var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/firebase-functions.nPsYJTDH
npm ERR! code CERT_NOT_YET_VALID
npm ERR! errno CERT_NOT_YET_VALID
npm ERR! request to https://registry.npmjs.org/firebase-admin failed, reason: certificate is not yet valid

Copy link
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like GoogleUtilities changes got mixed into this PR?

@charlotteliang
Copy link
Contributor Author

charlotteliang commented Apr 3, 2019

Good catch! Remove those out of this PR.

@charlotteliang charlotteliang merged commit ec23996 into master Apr 4, 2019
@charlotteliang charlotteliang deleted the fcm-message-delegate branch April 4, 2019 22:24
@vol24pl
Copy link

vol24pl commented Aug 1, 2019

Please update the documentation: https://firebase.google.com/docs/cloud-messaging/ios/receive

Also, set the useMessagingDelegateForDirectChannel flag to YES in the AppDelegate and implement messaging:didReceiveMessage:. Your app can still receive APNs messages with or without this callback, but for direct messages from FCM you'll need it.

@morganchen12
Copy link
Contributor

Thanks @vol24pl, we'll update the docs.

Googlers: See cr/261154357

@firebase firebase locked and limited conversation to collaborators Oct 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants