-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
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 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 2: We remove the warning, and make the adapter work just as fine with 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’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. |
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:
|
@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’s the same, just replace the key bundleID by topic |
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
Logs/Trace
1|RTC | WARN parse-server-push-adapter APNS bundleId is deprecated, use topic instead
The text was updated successfully, but these errors were encountered: