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

didRegisterForRemoteNotificationsWithDeviceToken #22

Closed
croossin opened this issue May 4, 2017 · 16 comments
Closed

didRegisterForRemoteNotificationsWithDeviceToken #22

croossin opened this issue May 4, 2017 · 16 comments

Comments

@croossin
Copy link

croossin commented May 4, 2017

When accepting the enable notification .. didRegisterForRemoteNotificationsWithDeviceToken is not being called... I would expect that to be the case? How else would I go about getting the device token after they accepted enabling notifications?

@ivanvorobei
Copy link
Member

@croosin
It must work. You can create empty project and try it again? Or send me your project, I am look at

@croossin
Copy link
Author

croossin commented May 4, 2017

I'm certain... must I do anything else special besides implementing that protocol function and including .notifications?

@ivanvorobei
Copy link
Member

@croossin after native notification request you should get the token

Nothing do additional

@croossin
Copy link
Author

croossin commented May 4, 2017

So I just have to add .notifications to the array and then once they accept that should get fired, correct?

@ivanvorobei
Copy link
Member

@croossin

yes, when they accept notification request you get token

@croossin
Copy link
Author

croossin commented May 4, 2017

I just tried downloading your example project and it still does not call that? Are you sure there is nothing else needed to do.

@vmacavero
Copy link

vmacavero commented May 4, 2017 via email

@croossin
Copy link
Author

croossin commented May 4, 2017

Yes I have done all of that. The example project doesn't even fire the call...

@vmacavero
Copy link

vmacavero commented May 4, 2017 via email

@croossin
Copy link
Author

croossin commented May 4, 2017

Yes tested on a real device...

@vmacavero
Copy link

vmacavero commented May 4, 2017 via email

@croossin
Copy link
Author

croossin commented May 4, 2017 via email

@PavelKandziuba
Copy link

Guys did you enable push capabilities in Targets -> Capabilities?
http://joxi.ru/bmoYMMpcVwE0Ay

I just tried and after enabling and reinstalling app - I got push token in App delegate call-back

@croossin
Copy link
Author

croossin commented May 4, 2017

Yes. I'll try again :)

@croossin
Copy link
Author

croossin commented May 4, 2017

I have got it to work! Clean project, remove from device, reinstall... Sorry for the hassle!

@ivanvorobei
Copy link
Member

Thank everybody for help!

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

4 participants