Comments (12)
@paulo-ferraz-oliveira Thank you so much. I have another issue to be resolved.
#242.
I hope with this issue, that issue is also resolved. I will update both issues accordingly after OTP 19.x upgrade and testing.
from apns4erl.
Sure...I close this issue. Thank you so much for the help.
from apns4erl.
https://erlang.org/doc/man/gen_statem.html was introduced in OTP 19, so that's what the compiler is complaining about. You have to either bump your OTP version or keep apns4erl
at a lower version.
from apns4erl.
@paulo-ferraz-oliveira I am on OTP 19.0.7 or apns4erl v2 will not compile.
I did upgrade from OTP 18 -> 19.
- Is it possible that
rebar3 compile
is referring to OTP 18 instead of 19?
erl
Erlang/OTP 19 [erts-8.0.5] [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V8.0.5 (abort with ^G)
1>
fromrebar.config
{minimum_otp_vsn, "19"}.
from apns4erl.
Sure, sorry, I read "I have a current prod env on OTP 18" and jumped to a conclusion. Lemme check.
from apns4erl.
For your reference:
which erl
/usr/local/bin/erl
ls -lrt /usr/local/bin/erl
lrwxrwxrwx 1 root root 21 Mar 2 02:00 /usr/local/bin/erl -> ../lib/erlang/bin/erl
ls /usr/local/lib/erlang/
bin erts-7.2.1 erts-8.0.5 Install lib misc releases usr
erl
Erlang/OTP 19 [erts-8.0.5] [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V8.0.5 (abort with ^G)
1>
from apns4erl.
I don't get that on 19.3 (don't have 19.0 locally).
from apns4erl.
OK...let me try 19.3
from apns4erl.
According to the doc.s, not having terminate
should not affect you much. I'm not sure if the callback became optional only after 19.0 was out (which is possible).
from apns4erl.
This is where it became optional: erlang/otp@913d0b5.
And this points to it having become so in OTP-19.3, as per Git history.
from apns4erl.
@paulo-ferraz-oliveira #242 is still happening.
OTP: 19.3.6
apns4erl: from master
It happens after couple of days of non-use of apns_connection. For eg.
Last push notification sent:
2021-03-02 21:27:36.030 [info] <0.506.0>@my_mod_apns:sendAPNS:290 Success in request. Reason was: 200 with <<"c2ca5csdsc5b0550a74fe799asda96d9049d3502c58fd5e4b27e98ed1b97e49c2d">>
Then after couple of days of non-use of apns_connection:
2021-03-05 15:51:38.055 [error] <0.530.0> CRASH REPORT Process <0.530.0> with 0 neighbours crashed with reason: no function clause matching gun_http2:parse(<<>>, close) line 77
2021-03-05 15:51:38.056 [error] <0.517.0> Supervisor gun_sup had child gun started with {gun,start_link,undefined} at <0.530.0> exit with reason function_clause in context child_terminated
from apns4erl.
@jainygaurav, if the original issue is solved, "Warning: undefined callback", I think we should move the discussion to #242 and not mix that here. What do you say?
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
- 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.