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

@chliangGoogle
Copy link
Contributor

@chliangGoogle chliangGoogle commented Apr 2, 2019

[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.

@chliangGoogle chliangGoogle requested a review from ryanwilson Apr 2, 2019
@chliangGoogle chliangGoogle added this to the Firebase 6 milestone Apr 2, 2019
Copy link
Member

@ryanwilson ryanwilson left a comment

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 Apr 3, 2019
* 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

LGTM

Copy link
Member

@ryanwilson ryanwilson left a comment

Sorry - please fix the Travis tests before submitting.

@chliangGoogle
Copy link
Contributor Author

@chliangGoogle chliangGoogle commented Apr 3, 2019

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

It looks like GoogleUtilities changes got mixed into this PR?

@chliangGoogle
Copy link
Contributor Author

@chliangGoogle chliangGoogle commented Apr 3, 2019

Good catch! Remove those out of this PR.

@chliangGoogle chliangGoogle merged commit ec23996 into master Apr 4, 2019
2 checks passed
@chliangGoogle chliangGoogle deleted the fcm-message-delegate branch Apr 4, 2019
@vol24pl
Copy link

@vol24pl 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

@morganchen12 morganchen12 commented Aug 1, 2019

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
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants