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

Firebase deprecating direct channel API #406

Closed
znewsham opened this issue May 21, 2020 · 8 comments
Closed

Firebase deprecating direct channel API #406

znewsham opened this issue May 21, 2020 · 8 comments
Labels
Firebase SDK Relates to the Firebase SDK library which this plugin wraps

Comments

@znewsham
Copy link

Firebase has stated they will deprecate their direct channel API from V7 and that within the next year they will remove the backend features for this. It seems like this plugin forces direct channel to be true:

[FIRMessaging messaging].shouldEstablishDirectChannel = true;

Is this required for all apps to receive push notifications in the foreground? Can it be set to false by some configuration in the plist of the application?

@lucassouza16
Copy link

lucassouza16 commented May 21, 2020

I have same issue

@dpa99c
Copy link
Owner

dpa99c commented May 22, 2020

Firebase has stated they will deprecate their direct channel API from V7 and that within the next year they will remove the backend features for this

Please can you provide a link to the documentation which states this.

@dpa99c dpa99c added the Firebase SDK Relates to the Firebase SDK library which this plugin wraps label May 22, 2020
@patrick-entinux
Copy link

@dpa99c I'm not the original poster but here's the email I received from Firebase today:

Hi company

We are writing to let you know that Firebase Messaging iOS Direct Channel API support is marked for deprecation. Firebase Messaging iOS SDK version 7.0 will be a breaking change where the SDK will no longer support iOS Direct Channel API.

What do I need to know?

Firebase Messaging iOS Direct Channel has been used for sending data to apps when they are in the foreground and for upstream messages. The Firebase Messaging iOS SDK v7.0 (slated to be released in September 2020) will no longer support the iOS Direct Channel API**. Your app will break if you update to the Firebase Messaging iOS SDK v7.0 without migrating off the iOS Direct Channel API.**

We are removing this feature in favor of natively supported messaging features provided by Apple Push Notification Service.

To prevent disruptions to your users, we recommend that you discontinue use of the iOS Direct Channel API as soon as possible. Please note that for the time being, your existing users can still continue to receive messages via the iOS Direct Channel API. However, within the next year, we will follow up this announcement with plans to deprecate the backend service support which may break your app with older versions of the Messaging iOS SDK (prior to v7.0).

What do I need to do?

  • To prevent disruptions to your users, we recommend that you discontinue use of the iOS Direct Channel API and use an alternative such as FCM’s APNs interface for downstream data message delivery.

  • If you are not using FCM HTTP v1 API. FCM HTTP v1 API provides full APNs support. If you need to continue using FCM Legacy API, you can:

  • Add the `content_available` key to your payload if you continue to use the legacy sender API.

  • For upstream messages, make arrangements to send messages directly from your app to your servers.

  • For real time updates, you can use Cloud Firestore, or other services.

You are an owner of the following Firebase project(s) that uses Firebase Messaging iOS Direct Channel API:

  • ** (my projects) **

As always, if you have any questions or need any assistance, feel free to reach out to support for more assistance.

@znewsham
Copy link
Author

Can confirm - I got the same email

@dpa99c dpa99c closed this as completed in fa6c286 May 22, 2020
@dpa99c dpa99c added the ready for release Something has been implemented and is awaiting release to npm label May 22, 2020
@selvindenis97
Copy link

selvindenis97 commented May 27, 2020

Got the same e-mail but never specified which one to use.

I do see the changes made in the latest commit but is there any way to verify if the app uses APN or Direct Channel?

duncan-c pushed a commit to howbout-ltd/cordova-plugin-firebasex that referenced this issue May 27, 2020
@znewsham
Copy link
Author

@dpa99c Thanks for the quick turn around on this, I see that you've merged the changes to master, but I don't see a new plugin/package version - is one required?

@dpa99c
Copy link
Owner

dpa99c commented May 29, 2020

@znewsham this will go out in the next release (hence the label "ready for release").
Until then, if you want this functionality, you can install the plugin directly off the master branch.

However given the Firebase Messaging iOS SDK v7.0 is slated to be released in September 2020 and backend support will only subsequently be disabled "within the next year", I don't see any urgent rush to integrate this immediately.

@znewsham
Copy link
Author

Awesome, thanks for the response - I just wanted to get a rough timeline!

dpa99c pushed a commit that referenced this issue Jun 1, 2020
@dpa99c dpa99c removed the ready for release Something has been implemented and is awaiting release to npm label Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Firebase SDK Relates to the Firebase SDK library which this plugin wraps
Projects
None yet
Development

No branches or pull requests

5 participants