Comments (7)
I just ran into this the past few days. If you update your payload to contain a headers key it will get around that error. Just testing this in production, you now need to specify an apns-topic which is the bundle ID when using a production certificate.
$push->setMessage([
'aps' => [
'alert' => [
'title' => 'This is the title',
'body' => 'This is the body'
],
'sound' => 'default',
'badge' => 1
],
'headers' => [
'apns-topic' => 'com.mycompany.myapp'
]
])
->setDevicesToken(['deviceToken1','deviceToken2','deviceToken3'...]);
from pushnotification.
Same issue, if some one has fixed it plz lemme know.Thanks
from pushnotification.
Same issue, if some one has fixed it plz lemme know.Thanks
from pushnotification.
any update on this issue...
from pushnotification.
vendor\edujugon\push-notification\src
download Apn.php in bellow url. replace given in file. it will work find.
https://github.com/darshantank1995/apnforpushnotification/blob/master/Apn.php
from pushnotification.
thanks @darshantank1995 ... but the problem is, this is issue happened in current release v5.0.0, your file works fine but it's the old code with APN sandbox URL. @Edujugon have any time to look into it
from pushnotification.
Maybe for iOS 13+ this is better (not tested):
'headers' => [
'apns-push-type' => 'alert'
]
from pushnotification.
Related Issues (20)
- Is there any configuration to send APN with p8 ? HOT 1
- how to add app_bundle_id ? HOT 1
- got killed error in laravel 7. HOT 1
- Does this support Laravel 8 ? HOT 1
- Unable to send notifications via FCM.
- Content-Type:" is not valid header name HOT 6
- Document breaking change in v4.5.1?
- [L 6.0]Testing push notification
- Breaking change in 4.5.1: Undefined index: headers HOT 2
- loc-key and loc-args on the payload
- Need support of Voip
- Badge count not working with fcm
- Push notiication not working on Ios
- update to newer versions
- notifications not sendings HOT 2
- Installation issue with laravle9.2 HOT 4
- Issue in Laravel 9.2 HOT 7
- FCM Api Key HOT 2
- add support for huawei
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 pushnotification.