简体   繁体   中英

Push notifications not working on macOS Catalyst app

After switching my bundle identifier from the one automatically generated for a Catalyst app to the bundle ID of an existing Mac app, I am no longer receiving remote push notifications.

The app shows that it is registered for notifications. The topic on the server is set to the correct bundle ID (the bundle ID Of the existing Mac app). I've tried with a JWT token and with Mac push certificates.

The response from the server returns 200 “sent”, but I'm not receiving the notification on my device.

Has anyone gotten push notifications working with a Catalyst app not using the auto-generated bundle ID? Any ideas on stuff I could try to get this working?

We used the auto-generated bundle id and initially had problems with notifications. Now we have to use the iOS app bundle id to send notifications to the Mac Catalyst app. From memory this didn't work when we tried it a few months ago and we filed a bug. I suggest using the iOS app bundle id even though you are using a custom bundle id.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM