Remote connection with PHP using sockets

madSac

Active Member
Licensed User
Longtime User
I want to control my android application from PHP.
I have knowledge of Winsock of VB6..but i am not able to implement it here as user IP can change anytime without any event.
& i am not able to use PHP with B4a Sockets.:BangHead:


I had an idea ,
Like using a Javascript page with an repeated interval refresh without loading using ajax. But it cannot be implemented here as it will waste user's bandwith.:BangHead:


:sign0163: Having Any IDEA ?

Please :sign0085:
 

warwound

Expert
Licensed User
Longtime User
This is an idea not a solution...

Take a look at the parse.com REST push notification service and the Android push notification service.

I experimented recently with this and found it was relatively easy to send notifications to a device from a PHP script.
The notification could be just that - a notification displayed on the device.
Or it could be a command for the device to execute some code.
This was all done in Eclipse using native android SDK and java.

We have a very basic B4A parse.com library here: http://www.b4x.com/forum/additional...y-beta-simple-backend-solution.html#post71147, and i was hoping to find time to create a more complete B4A library but so far haven't had the time (http://www.b4x.com/forum/bugs-wishlist/21980-parse-com-sdk.html#post127635).

Rather than trying to create a new B4A Parse library that contains all available functionality i could probably put together some code to enable you to use the Android push notification service.
That'd leave you to create PHP scripts to send notifications to your device - i have some code samples that would help here.

Does Parse push notifications sound like a viable option for your project?

Martin.
 
Upvote 0

madSac

Active Member
Licensed User
Longtime User
This is an idea not a solution...

Take a look at the parse.com REST push notification service and the Android push notification service.

I experimented recently with this and found it was relatively easy to send notifications to a device from a PHP script.
The notification could be just that - a notification displayed on the device.
Or it could be a command for the device to execute some code.
This was all done in Eclipse using native android SDK and java.

We have a very basic B4A parse.com library here: http://www.b4x.com/forum/additional...y-beta-simple-backend-solution.html#post71147, and i was hoping to find time to create a more complete B4A library but so far haven't had the time (http://www.b4x.com/forum/bugs-wishlist/21980-parse-com-sdk.html#post127635).

Rather than trying to create a new B4A Parse library that contains all available functionality i could probably put together some code to enable you to use the Android push notification service.
That'd leave you to create PHP scripts to send notifications to your device - i have some code samples that would help here.

Does Parse push notifications sound like a viable option for your project?

Martin.

It is Paid .....do you have any sample just to connect with B4A app & send messages via php or VB6 sockets
I want a Client Server Socket sample...hoping that i will do it...:BangHead:
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
For free you can access the Parse API 1,000,000 times in a month.
You can also send up to 1,000,000 push notifications a month for free.

Surely that's enough for your project?

https://www.parse.com/plans

I've got no knowledge of PHP sockets sorry so can't help there.

Martin.
 
Upvote 0

madSac

Active Member
Licensed User
Longtime User
For free you can access the Parse API 1,000,000 times in a month.
You can also send up to 1,000,000 push notifications a month for free.

Surely that's enough for your project?

https://www.parse.com/plans

I've got no knowledge of PHP sockets sorry so can't help there.

Martin.
This credit would help me in testing my app but after releasing it won't
& it also seems that they don't provide api access.
I will have to modify my app later so...can't manage with it.
:eek:
 
Upvote 0
Top