Giter Site home page Giter Site logo

help: invalid token about knuff HOT 12 CLOSED

knuffapp avatar knuffapp commented on July 18, 2024
help: invalid token

from knuff.

Comments (12)

katunch avatar katunch commented on July 18, 2024 1

Had the same problem here. Knuff is saying "400 Bad Device Token" when you choose Sandbox environment. So i've tested it with production environment and the notification will be devlivered to the app. altough while it is connected to the debugger. Maybe the toggle "Production/Sandbox" is inverted. But i can not confirm that at the moment.

from knuff.

blommegard avatar blommegard commented on July 18, 2024 1

Oh. :(

Yeah, APNS is the producer: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html

I guess they mean that there is no such token associated with the production environment, and therefore a bad token.

from knuff.

blommegard avatar blommegard commented on July 18, 2024

Hi, thanks for using the app!

Did you remove the <> from your log statement?

from knuff.

nolith avatar nolith commented on July 18, 2024

thank you for making it ;)

Yes I removed the <> and also tried with and without spaces.

from knuff.

blommegard avatar blommegard commented on July 18, 2024

Do you have a correct certificate/key-pair, that matches the token?

from knuff.

nolith avatar nolith commented on July 18, 2024

I think so.

I've generated a CSR for the Development IOS Push Services and selected my application Id on the apple member center.

Then I downloaded back the certificate and imported it in keychain, where it automatically found the private key generated during the CSR step.

from knuff.

blommegard avatar blommegard commented on July 18, 2024

Yeah, that is the correct way. :) Are you sure that you are using the correct version of the app as well? Sandbox/Not Sandbox?

from knuff.

nolith avatar nolith commented on July 18, 2024

At the moment I've generated only the development iOS push service and I'm running the app from XCode so it must be in sandbox

from knuff.

blommegard avatar blommegard commented on July 18, 2024

Can you try it out with the new version of Knuff and see if it still doesn't work for you?

from knuff.

roma86 avatar roma86 commented on July 18, 2024

@blommegard why it is closed? i have same issue with 1.0.

from knuff.

blommegard avatar blommegard commented on July 18, 2024

@roma86 This is usually not a Knuff error. Is the token actually correct? Do you use the correct certificate?

from knuff.

roma86 avatar roma86 commented on July 18, 2024

@blommegard i am sorry. it looks like i have had wrong meaning about ad hoc distribution, which connect to the production environment. When Knuff switched to production it works for me.

Who is the producer of "400 Bad Device Token" error message? Does it returned from apns? It point us to the wrong way of debugging since i spent a hours to figure out where is my mistake in converting NSData to hex.

from knuff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.