All subscriptions fail when the constructor runs and do not seem to monitor network changes afterwards.
In addition the following errors can be seen whilst running the respective build on an Android phone ():
**ERROR : **
wifi
main.js:1573 subscriptionDisconnectNetwork error
main.js:1574 RangeError: Maximum call stack size exceeded
at setupSubscription (vendor.js:1)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
(anonymous) @ main.js:1574
main.js:1580 subscriptionChangeNetwork error
main.js:1581 RangeError: Maximum call stack size exceeded
at isEventTarget (vendor.js:83458)
at setupSubscription (vendor.js:83427)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
(anonymous) @ main.js:1581
main.js:1587 subscriptionConnectNetwork error
main.js:1588 RangeError: Maximum call stack size exceeded
at setupSubscription (vendor.js:1)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
at setupSubscription (vendor.js:83444)
iOs behaviour
Even though the iOs build is successful, when the application loads on the phone, after the splash screen the app never loads.
Yes it was initially on the same version yesterday, then I updated it to the latest version I could find in npm, just in case that would resolve the issue.
Unfortunately that does not work, but thanks for the recommendation.
I am using multiple other native frameworks in conjunction (tcp, firebase, wifi libraries). Maybe d the combination of them is creating some sort of issue⌠Iâll try to remove those and check if I that module works on its own.
Sure. Here is a basic ionic app with only the network plugin added to it. Let me know if you have any problem accessing it. Thank you again for your help!
It gave this
npm WARN @ionic-native/network@5.0.0-beta.14 requires a peer of @ionic-native/core@5.0.0-beta.14 but none is installed. You must install peer dependencies yourself.
Iâm on 5.0.0-beta.15 on the rest of the ionic-native libraries. You could potentially go higher, I am not sure at which point the dependencies will start throwing warnings.
Still gives that peer warning but the problem
was that I was importingâŚ
import { Network } from â@ionic-native/network/â;
instead of
import { Network } from â@ionic-native/network/ngxâ;