Replies: 8 comments 14 replies
-
Is that the same version as https://github.com/appcelerator-archive/ti.udp ? But are you sure that the error is by that module? Try that file and if it works I'll make a PR to the repo so its linked |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot! You are great!!
Until now I used the version at www.focussing.nl/ti.udp-master.zip <http://www.focussing.nl/ti.udp-master.zip> (Ti.UDP version 3.1.0) which originally was derived from https://github.com/appcelerator-archive/ti.udp <https://github.com/appcelerator-archive/ti.udp>.
That version 3.1.0 works fine in my iOS app which was built using Ti SDK 10.1.1 and released in the AppStore.
It also worked fine in Android app based on Ti SDK 6.3.0 back in 2019.
I tested your Ti.UPD 4.0.0 using Ti SDK 10.1.1.GA using an android device.
It builds perfectly, but I get a runtime exception:
[INFO] {"host":"192.168.1.201","data":"STA"}
[ERROR] TiExceptionHandler: (main) [100,4959] /app.js:98
[ERROR] TiExceptionHandler: Alloy.Globals.sockets.socket.sendString({
[ERROR] TiExceptionHandler: ^
[ERROR] TiExceptionHandler: Error: Unknown Java Exception occurred
[ERROR] TiExceptionHandler: at Object.Alloy.Globals.sendString (/app.js:98:30)
[ERROR] TiExceptionHandler: at Titanium.<anonymous> (/alloy/controllers/index.js:201:15)
[ERROR] TiExceptionHandler:
[ERROR] TiExceptionHandler: android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1273)
[ERROR] TiExceptionHandler: libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:276)
[ERROR] TiExceptionHandler: libcore.io.IoBridge.sendto(IoBridge.java:509)
[ERROR] TiExceptionHandler: java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:184)
[ERROR] TiExceptionHandler: java.net.DatagramSocket.send(DatagramSocket.java:305)
[ERROR] TiExceptionHandler: ti.udp.SocketProxy.sendString(SocketProxy.java:202)
[ERROR] TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method)
[ERROR] TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:55)
[ERROR] TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:41)
[ERROR] TiExceptionHandler: ti.modules.titanium.TitaniumModule$Timer.run(TitaniumModule.java:145)
[ERROR] V8Exception: Exception occurred at /app.js:98: Uncaught Error: Unknown Java Exception occurred
In the iOS situation using the same code the Ti.UDP works perfectly.
I hope this can be fixed; that would be the perfect Xmas present!!
Best regards,
Raymond
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the fast reply. -- Start application log ----------------------------------------------------- |
Beta Was this translation helpful? Give feedback.
-
The buffersize warning has gone now. [INFO] WIFI connected |
Beta Was this translation helpful? Give feedback.
-
YOU ARE AMAZING It works like a charm!! |
Beta Was this translation helpful? Give feedback.
-
There is some weird thing going on, it only works one time. When I close the app and start it again it does not work anymore |
Beta Was this translation helpful? Give feedback.
-
sorry; macbook:bosan raymond$ /Users/raymond/android-sdk/platform-tools/adb logcat | grep socketProxy but then it waits... nothing show when I start the app |
Beta Was this translation helpful? Give feedback.
-
to finish this up here too: |
Beta Was this translation helpful? Give feedback.
-
Hi everybody, could anyone please help me to update the very old Ti.UDP module. This module was originally created by Appcelerator but no longer updated.
I need to update an Android app built back in 2019 using Ti SDK6.3.0, but I cannot get it to work anymore:
TiExceptionHandler: (main) [0,223] - Message: Uncaught ReferenceError: global is not defined
I tried lots of things, node version, other SDK’s, etc. And I cannot build the module to get it run at SDK 8.2 or so.
I use the same module for the iOS variant of the app and that works super with the latest SDK 10.1.1 in combination with Xcode version 13.
The best way of course would be to update the Android app and then use a modernized Ti.UDP module...
The module can be downloaded from here: www.focussing.nl/ti.udp-master.zip
Any help is very much appreciated!
Best regards,
Raymond
Beta Was this translation helpful? Give feedback.
All reactions