Skip to content
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

[Bug]: Apns Bad Device Token #828

Closed
2 of 3 tasks
fabioselau077 opened this issue Jan 27, 2024 · 2 comments
Closed
2 of 3 tasks

[Bug]: Apns Bad Device Token #828

fabioselau077 opened this issue Jan 27, 2024 · 2 comments

Comments

@fabioselau077
Copy link

fabioselau077 commented Jan 27, 2024

What happened?

iOS not create Subscription
image

Steps to reproduce?

1. Create new project in OneSignal
2. Create new projeto flutter
3. Follow docs for Flutter SDK Setup: https://documentation.onesignal.com/docs/flutter-sdk-setup
4. Testing in Simulator iOS (ok)
5. Testing in physicist iOS and get "Apns Bad Device Token"

What did you expect to happen?

Subscription physicist iOS in OneSignal for push. Try change 'aps-environment' to 'production' but same error (following this comment).

OneSignal Flutter SDK version

5.0.4

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@fabioselau077
Copy link
Author

For OneSignal support, working now!

"Hi there,
The error "Apns Bad Device Token" can be fixed following the troubleshooting guide.
Please follow the steps in our iOS Mismatched User Environment docs if you have not already.
Then try the following:

  • uninstall the app on these listed player IDs (if you recognize the player ID)
  • click the iOS config on the OneSignal settings page and press save, this will clear the warning
  • re-install the app on the device
  • open the app and re-subscribe to the prompt. This will give you a new player ID.
  • Send yourself a notification and see if the warning appears again
    If you don't recognize any of the listed player IDs, just click the iOS config on the OneSignal settings page and press save, this will clear the warning. On the next iOS notification see if the warning shows again.
    Let us know if you have any additional questions for us.
    Thanks."

@InfoSpecific
Copy link

Hello @fabioselau077,

I am facing the same issue only for the AppStore and TestFlight build specifically for the Indian User. For other country, users are able receive the notification that I have send from the one signal push notification.

When I am runned the app from the XCode then notification is working perfectly fine. But when I am downloaded the build that I have uploaded in TestFlight in iPhone at that time I am not receiving notification and this scenario is only happened for the Indian User. For the other countries user not faced this issue they are receiving notification.

I am waiting for your response. If you have any idea about it please let me know what is the wrong with my configuration or any other mistake.

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

2 participants