Comments (5)
No probs. If you're getting a 200 then it means it was successfully sent and accepted by APNS, so i would look to the device code and maybe check the following;
- You don't have the app open when testing - Unless you've written extra code to show a notification when the app is open it wont show when the app is open.
- You haven't requested the correct permissions from the user - On the latest version of iOS all devices will receive push tokens, and you can push to all devices by default, but alerts badges and sounds wont display unless you have requested the correct permissions.
from apns2.
Oh my god!!!!! Thank you, I thought notification appeared even when the application was open! it works perfectly! thanks again ! :)
from apns2.
You're getting a 403 because theres something wrong with your cert and you're not catching the err and using _
instead.
from apns2.
Thanks, error actually came from there.
Actually, i've a status 200, but my device doesn't receive notification. I know it's not about package and i'm sorry to ask it here but it's first time i'm use push notification and I have already asked for help on stackoverflow but nobody could help me.
So everything seems to work but my iphone doesn't receive notification sent, do you know why or where the problem might be?
(my device is an iPhone 6 on iOS 9, i've enabled push notification / remote notification in Background Mode in XCode and i build with Release build configuration)
from apns2.
Haha, no worries. Glad i could help!
from apns2.
Related Issues (20)
- How to specify the connection environment when using ClientManager
- ask a question for usage HOT 1
- Support for apns-push-type in header HOT 2
- silent push not working in iOS13 when run through xcode
- ios push notification multiple devices HOT 2
- Error causing frequent crashes HOT 4
- x509: certificate signed by unknown authority HOT 3
- write:broken pipe
- x509: certificate signed by unknown authority HOT 13
- About GeoTrust Global CA root certificate(removal) upgrade HOT 1
- Please drop Hyper and consider using http HOT 2
- Replace github.com/dgrijalva/jwt-go with github.com/golang-jwt/jwt HOT 2
- APNs urls should be in a config file HOT 1
- Replace github.com/dgrijalva/jwt-go
- What are the pros and cons of using a p12 certificate vs JWT? HOT 2
- Issue release with latest changes HOT 1
- Perf to be faster HOT 1
- Does apns support broadcast mode push ? HOT 1
- Missing Error Reason: Expired Token
- ios Live activity HOT 2
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 apns2.