Parse-server: APNS bundleId is deprecated

Created on 3 Jul 2017  路  8Comments  路  Source: parse-community/parse-server

Issue Description

In the last version of parse-server 2.5.2, when sending push messages to an iOS device the following message appears, I would like to know what the new configuration is used.

Push: {
聽聽聽聽 Android: {
聽聽聽聽聽聽 SenderId: '', // The Sender ID of GCM
聽聽聽聽聽聽 ApiKey: '' // The Server API Key of GCM
聽聽聽聽 },
聽聽聽聽聽聽 Ios
聽聽聽聽聽聽 {
聽聽聽聽聽聽聽聽 Pfx: '/root/prod.p12',
聽聽聽聽聽聽聽聽 BundleId: 'com.apple',
聽聽聽聽聽聽聽聽 Production: true
聽聽聽聽聽聽 },
聽聽聽聽聽聽 {
聽聽聽聽聽聽聽聽 Pfx: '/root/dev.p12',
聽聽聽聽聽聽聽聽 BundleId: 'com.apple',
聽聽聽聽聽聽聽聽 Production: false
聽聽聽聽聽聽 }
聽聽聽聽 ]
聽聽 }

The error is:

WARN parse-server-push-adapter APNS bundleId is deprecated, use topic instead

How will the new configuration for the iOS push?

Steps to reproduce

Send a push to iOS Device with the parse-server 2.5.2 with the old configuration with bundleId.

Expected Results

Not Warn

Actual Outcome

WARN parse-server-push-adapter APNS bundleId is deprecated, use topic instead

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : 2.5.2

    • Operating System: Ubuntu

    • Hardware: VPS 8 Core 8 Gb Ram

    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc):

Logs/Trace

1|RTC | WARN parse-server-push-adapter APNS bundleId is deprecated, use topic instead

Most helpful comment

That鈥檚 the same, just replace the key bundleID by topic

All 8 comments

Hey @adirgan thanks for your report.

Yes, this changes were introduced with the 2.0.0 release of parse-server-push-adapter, in these lines.

As you can see from the message, it tells you to use topic instead of bundleId. Additionally, it's not an error, as you wrote, but a warning.

I wanted to invite @flovilmart and @Schwobaland for the discussion. We have two options ahead:

1: We keep the backwards compatibility warning and update the docs to match the push adapter behavior (meaning, we recommend the usage of topic instead of bundleId).

2: We remove the warning, and make the adapter work just as fine with bundleId. Passing topic, or passing topic and bundleId, in the other hand, is discouraged and triggers the warning, in order to keep the consistency between adapters.

I think we should go with the second option. In my opinion, the adapter's responsibility is to adapt parse-server to the push sending code. No matter which adapter I choose for iOS, I should pass always the same parameters.

What do you guys think?

@natanrolnik, the push initialization is a mess, and historically a mess as it started baked into Parse server. What happens under the hood, is that the push options is passed to the ParseServerPushAdapter and the adapter validates it.

The initialization API can鈥檛 be the same for all push adapters, for ex, AWS SNS needs different Parms etc... we鈥檙e gonna stick with 1 and fully deprecate bundleID at a later date as this semantic doesn鈥檛 match with the APNS 2 protocol semantics.

I'm fine with it - we need to update the docs then.

Probably yes ;)

@flovilmart The question is if the topic is the same parameter as BundleID

@adirgan yes, it is. You can read this from the warning itself:

bundleId is deprecated, use topic instead

@flovilmart i couldn't find the docs showing how to configure topic .Push notification configuration docs only shows bundle id usage http://docs.parseplatform.org/parse-server/guide/#push-notifications. Where can i find docs using topic instead of bundle id.

That鈥檚 the same, just replace the key bundleID by topic

Was this page helpful?
0 / 5 - 0 ratings