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

Notifications aren't sent to Production environment while using .p8 token (IOS). Error: "Failed: BadDeviceToken" #3

Closed
Ariandr opened this Issue Nov 30, 2017 · 9 comments

Comments

Projects
None yet
3 participants
@Ariandr
Collaborator

Ariandr commented Nov 30, 2017

It seems there is a problem when I switch to the Production environment when I use .p8 token. I get the error: "Failed: BadDeviceToken". But device token is right for Production and I don't get that error, when I use my own server to send the same notification with all the same data (Key Id, Team Id, ...). So, it seems the app doesn't switch environments. Because while I was using Sandbox, everything worked ok.
screenshot at nov 30 18-13-09

@yajiex

This comment has been minimized.

yajiex commented Jan 9, 2018

I also hit this issue. I haven't started to look at the code of this repo, my workaround is to setup a server which talks with apns by myself.

@onmyway133

This comment has been minimized.

Owner

onmyway133 commented Jan 9, 2018

@Ariandr @yajiex Hi, thanks for using my app. I just fixed it, you can now check https://github.com/onmyway133/PushNotifications/releases/tag/1.2.1

@Ariandr

This comment has been minimized.

Collaborator

Ariandr commented Jan 10, 2018

@onmyway133 Thanks a lot!

@Ariandr

This comment has been minimized.

Collaborator

Ariandr commented Jan 10, 2018

@onmyway133 There is another problem now. When I run the app, it's just blank.
screen shot 2018-01-10 at 13 10 38

@onmyway133

This comment has been minimized.

Owner

onmyway133 commented Jan 10, 2018

@Ariandr Hi, there was problem with electron-packager so the packaged app is not correct. I will have a look

@Ariandr

This comment has been minimized.

Collaborator

Ariandr commented Jan 10, 2018

@onmyway133 great, thanks!

@onmyway133

This comment has been minimized.

Owner

onmyway133 commented Jan 10, 2018

@Ariandr I opened the issue here electron-userland/electron-packager#787, hopefully get an answer then I can continue making new release

@Ariandr

This comment has been minimized.

Collaborator

Ariandr commented Jan 12, 2018

@onmyway133 hi, thank you!

@onmyway133

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment