Comments (12)
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.
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.
Hi, thanks for using the app!
Did you remove the <> from your log statement?
from knuff.
thank you for making it ;)
Yes I removed the <> and also tried with and without spaces.
from knuff.
Do you have a correct certificate/key-pair, that matches the token?
from knuff.
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.
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.
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.
Can you try it out with the new version of Knuff and see if it still doesn't work for you?
from knuff.
@blommegard why it is closed? i have same issue with 1.0.
from knuff.
@roma86 This is usually not a Knuff error. Is the token actually correct? Do you use the correct certificate?
from knuff.
@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)
- An SSL error HOT 4
- Can not choose certificate HOT 2
- Certificate expired in ver 1.3
- Support `.p8` key
- Test
- having an Issue
- Feature Request - Location Push support
- E
- It pops an alert saying Topic is missing HOT 5
- Enable dark mode breaks syntax highlighting HOT 3
- please take support FCM HOT 1
- Implement the feedback service
- How does it work ? HOT 1
- Unable to select identity HOT 1
- SSL error / Support for HTTP/2 ?
- How does it works?
- Apple Push Services: com.madebybowtie.Knuff-iOS expired
- Xcode project is unbuildable HOT 2
- contains a reference to a missing file 'Fragaria.framework'. HOT 1
- Fragaria HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knuff.