Skip to content

APNS bundleId is deprecated #3987

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

Closed
adirgan opened this issue Jul 3, 2017 · 8 comments
Closed

APNS bundleId is deprecated #3987

adirgan opened this issue Jul 3, 2017 · 8 comments

Comments

@adirgan
Copy link

adirgan commented Jul 3, 2017

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

@natanrolnik
Copy link
Contributor

natanrolnik commented Jul 3, 2017

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?

@flovilmart
Copy link
Contributor

@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’t be the same for all push adapters, for ex, AWS SNS needs different Parms etc... we’re gonna stick with 1 and fully deprecate bundleID at a later date as this semantic doesn’t match with the APNS 2 protocol semantics.

@natanrolnik
Copy link
Contributor

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

@flovilmart
Copy link
Contributor

Probably yes ;)

@adirgan
Copy link
Author

adirgan commented Jul 3, 2017

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

@natanrolnik
Copy link
Contributor

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

bundleId is deprecated, use topic instead

@manishsangwan
Copy link

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

@flovilmart
Copy link
Contributor

That’s the same, just replace the key bundleID by topic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants