Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOS Push Notifications for multiple Apps from one server

We have 2 apps setup for Push Notifications. (A and B)

There are different profiles for each (of course) and we've generated separate certs for each. App A receives Push notifications just fine, App B doesn't.

Both are talking to the same server - and it does figure out which app it's sending notifications to and uses the correct cert.

I've noticed that if you install both apps on one device, they both get the same Token (which our server tracks per app.). When the server sends a msg in this case, it sends it twice to the same Token - once with each cert. App A will receive the msg, App B won't.

When sending the msgs to both apps, the Apple server responds that all messages were sent correctly with no errors. But the msg never shows up for the one app.

Any suggestions on where to look?

like image 762
CasaDelGato Avatar asked Aug 23 '13 18:08

CasaDelGato


People also ask

How do I get grouped notifications on iOS?

Go to Settings and tap Notifications. Select an app and tap Notification Grouping. Select one of these options: Automatic: The notifications from the app will be grouped according to organising criteria within the app, such as by topic or thread.

Can you batch notifications on iPhone?

Open up the Settings app. Choose "Notifications" from the main list of options. Find the app with the notifications you want to modify from the list, such as Messages, and tap it. Scroll down to Notification Grouping and tap it.


1 Answers

After much searching and looking, I found this question: Iphone - Multiple Apps, Different App ID, Same Token

It points out that you must use a different .certSigningRequest for each app. I checked with our AppStore guy, and he had used the same one for both certs. He fixed that, and now it works!

like image 197
CasaDelGato Avatar answered Oct 14 '22 09:10

CasaDelGato