Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - msx

#16
Is it possible to get my app running in the background? It is an app that alerts you of speed cameras and it would be very important that it work in the background to use it together with a GPS navigator.  :-[
#17
It's definitely not a permissions problem.

Socket connection through Objective-c works perfectly.
#18
I think it may be a problem with 64bit adaptation, since my previous app worked correctly with socket.
#19
Unfortunately it does not work for me. I have tested all possible combinations in my plist file.
#20
The example is very simple, but I add it here.

Code (glbasic) Select

IMPORT "C" int glb_IOS_Log(const char*)

LOCAL ok%,sock%

ok% = SOCK_INIT()

sock% = SOCK_TCPCONNECT("www.google.com", 80, 5000)
glb_IOS_Log (sock%+" - "+NETGETLASTERROR$())

PRINT "TEST",0,0
SHOWSCREEN
MOUSEWAIT
END


sock%=-1
NETGETLASTERROR$()=57 Socket is not connected


I use the latest version of GLB and XCode iOS 10 Beta 3, but with beta 1 also did not work.

glb_IOS_Log prints a string in XCode via NSLog.
#21
I've done some tests I note that the SOCK_INIT () command works correctly and responds 1, which means that initiates the socket well. However, when the connection is made using SOCK_TCPCONNECT (), an error occurs and responds -1.

XCode displays this error just after using SOCK_TCPCONNECT ().

Code (glbasic) Select
2017-03-05 14:22:39.066829 GLB_PRODUCT_NAME[2984:533812] Warning: Libinfo call to mDNSResponder on main thread


And NETGETLASTERROR$() responds...

Code (glbasic) Select
2017-03-05 14:22:39.381579 GLB_PRODUCT_NAME[2984:533812]  - 57 Socket is not connected


I do not know what can happen.

I hope someone can help me with this data I provide.  :whistle:
#22
Finally working multitasking!!!. You are my idol.  :nw: :nw: :nw:
#23
Puedes enviarla por socket. GLB incorpora muy buenos comandos para ésto que funcionan muy bien aunque si no estás familiarizado puede resultar un poco frustrante al principio. Te puedo echar una mano si lo necesitas pero te tengo que decir que si es para iOS olvídate porque no funciona, hay que usar sus propias librerías. Yo tengo que adaptar una app para iOS y tendré que crearme mis propias rutinas en objective c. Si lo consigo te lo puedo pasar.


Enviado desde mi iPhone utilizando Tapatalk
#24
Fantastic spacefractal !!!. Thank you for working so hard for the community. I do not know what we would do without you.  :nw: :nw: :nw:
#25
Those are great news!!!! :nw: :nw:.

Is it all about replacing the WHILE loop with SUB GLB_ON_LOOP?
#26
I can not make it work. I have programmed a test code and this is the result:

Code (glbasic) Select
LOCAL cont
AUTOPAUSE TRUE
ALLOWESCAPE FALSE

WHILE 1
INC cont
PRINT "test "+cont,0,30
SHOWSCREEN
WEND

SUB GLB_ON_PAUSE:

ENDSUB

SUB GLB_ON_RESUME:

ENDSUB


Attachment screenshot.
#27
I'll try it.

What do your GLB_ON_PAUSE and GLB_ON_RESUME do?


Enviado desde mi iPhone utilizando Tapatalk
#28
My applications in that case start from the beginning.


Enviado desde mi iPhone utilizando Tapatalk
#29
So I'm doing it now but it takes time to load and the result is not what I wanted.


Enviado desde mi iPhone utilizando Tapatalk
#30
Hi SF. I do not use IN APP but Admob and I'm very interested in multitasking working correctly.

I appreciate your efforts.



Enviado desde mi iPhone utilizando Tapatalk