Comments (4)
So just the extra data, or the entire message? How would you see that?
from apn.
My idea is that toApn($notifiable)
should get called for each device token and not just for each user. Something similar to: toApn($notifiable, $device)
. $device
could be more than just a token but an object that implements an interface to return a token, as well as containing other infos useful to personalize the message.
from apn.
Going to close the associated PR because it's fallen a little behind, but this is something I'd like to implement and take a little further. In addition to customisation per-device I think it would be worth adding the ability to change the connection credentials. For example, you might have users with different tokens and each token belongs to a unique iOS app - there's no way to do that at this point.
This problem has been mentioned over in laravel-notification-channels/gcm#25 so it would be good to see if we can find some generic solution that we could be consistent with.
from apn.
Unlikely to make any progress on this as it's very stale but happy to continue the discussion if it's still a feature that is wanted.
from apn.
Related Issues (20)
- Queued notifications stop being sent after a few hours/days HOT 1
- On-Demand Notifications HOT 5
- Wrong documentation concerning production. HOT 2
- Laravel 8 Support HOT 1
- Message : Undefined offset: in KeyConverter.php HOT 6
- Unable to not send `mutable-content` HOT 1
- Possible to support collapsing notifications HOT 4
- PHP Version 8.0 Does Not Satisfy HOT 1
- How do I troubleshoot problems I'm having with this package? HOT 5
- Allow newer Pushok version with composer HOT 1
- Laravel 7.3 - PHP 7.2 - APN 2.3 - Not working HOT 10
- Unable to send badge zero with Laravel 6. HOT 3
- Set alert HOT 8
- Allow support for $subtitle HOT 4
- Target [Pushok\AuthProviderInterface] is not instantiable while building [Pushok\Client] HOT 20
- iOS background notification should not set anything for `alert` HOT 1
- change environment to production HOT 10
- Handling 410 responses? HOT 2
- Possible to support apns-id HOT 2
- Laravel Vapor - HTTP/2 stream 15 was not closed cleanly before end of the underlying stream in 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 apn.