Inconsistent package identifier (sandbox) in OneSignal

I am trying to send a PN to my iOS application.

I followed the standard steps, i.e.:

  • create a new application and upload development and distribution certificates (sandboxes)

  • enter the application identifier in my project: OneSignal.initWithLaunchOptions (launchOptions, appId: "myAppID")

  • create a new template

  • send a message

When I sent the PN, I received the message "send message successfully" green, but after a while I got a warning, when I clicked on it, I went to the application settings page, and the warning:

Invalid package identifier (sandbox)

and I did not get PN!

I checked my package id in my project and it is 100% consistent with the uploaded certificates.

Has anyone encountered this problem while trying to use OneSignal for PN?

Please, help.

Thanks.

+5
source share
1 answer

This issue occurs when your application is built with a Provisioning Profile for a Bundle ID that does not match the Bundle ID of the uploaded certificate that you uploaded to OneSignal.

You may have created several assemblies of your application, some with the correct package ID, and some with the wrong one. As a result, you may have signed devices in OneSignal that are associated with different package identifiers.

If you can receive notifications with the latest version of your application, you can probably ignore this error. If all the iOS notifications you send are displayed as “Invalid,” you must either upload a new push certificate with the correct package ID, or create your application with a provisioning profile that matches the package ID of the push certificate.

+2
source

Source: https://habr.com/ru/post/1260141/


All Articles