Cordova-plugin-firebasex: Firebase deprecating direct channel API

Created on 21 May 2020  路  8Comments  路  Source: dpa99c/cordova-plugin-firebasex

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?

Firebase SDK

Most helpful comment

@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鈥檚 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.

All 8 comments

I have same issue

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 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鈥檚 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.

Can confirm - I got the same email

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?

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

capc0 picture capc0  路  5Comments

leabdalla picture leabdalla  路  7Comments

Akz47 picture Akz47  路  6Comments

xurdep picture xurdep  路  5Comments

REPTILEHAUS picture REPTILEHAUS  路  6Comments