Comments (5)
well, ejabberd as external module is a bit comple but if you modify the current code, you can add the dependency in rebar.config file, it should do the magic :-) ... after that, you'll need to create a module to use it, of course.
from apns4erl.
Okay, I will add the 'apns4erl' as a dependency in my rebar.config.
This theorically solves my first question..
But what about the other things?
I'm implementing a module with a hook and so on.. but for example:
- Where I should define the configurations detailed on apns4erl readme?
(Maybe on the rebar.config also?) - Where I should create the connection?
(Maybe on the module init function? Or every time that I send a push?)
Etc..
Many thanks @manuel-rubio !!! 👍
from apns4erl.
About the questions:
- you should to define the configuration in the start of the new module you have to create.
- the same, in the start of the module.
About configuration, for example, you can add it to the module configuration to get it in the Opts
param for start the module. It's not hard to do, but you need to review code from other modules to realize how to do it ;-)
If you need more help we can talk in DM, talk in spanish is better for me :-P
from apns4erl.
Okay, It will be better.
DMs in spanish, but with which communication channel? jajaja
Then I will write a Wiki page/tutorial like @monkeyfdude but explaining all the integration process.
from apns4erl.
I think we can close that ticket
from apns4erl.
Related Issues (20)
- adding coverage in Travis
- Increase test coverage
- Connections using Provider Auth Token HOT 1
- how to send mutiple token to apns in one time? HOT 4
- Rebar compile issues when included in other projects HOT 1
- version bump to 2.3.1
- New 2.4.0 release HOT 2
- apns:connect error HOT 3
- Maintenance-related issues HOT 9
- Move from Travis CI to GitHub Actions? HOT 2
- Release request HOT 2
- CRASH gun_http2:parse in server logs HOT 26
- src/apns_connection.erl:22: Warning: undefined callback function terminate/3 (behaviour 'gen_statem') HOT 12
- Erlang (Not apns4erl) Question HOT 3
- With gun-2.0.0-rc.1, apns reconnections are much more frequent than with gun-1.3.3 HOT 3
- timeout key is expected but its presence is not verified in apns_connection:init/1
- Improvements from Akick HOT 4
- Function not exported {string,lowercase,1} HOT 3
- apns crashes with {case_clause,{error,{closed,"The connection was lost."}}
- push current master to hex.pm HOT 1
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 apns4erl.