hi
I just finished a project of an android app for android tv and mobile. the idea is that you have an app that is always running in the front on the android tv device and a mobile app (b4a/b4i) where you can make changes on what to display on the tv. to update the information on the tv I send a push from the mobile app and everything is updated on the tv.
I tested it on 2 TVs. 1 worked without any problem, but a cheaper one did not receive the push notification. and because the plan is to sell the whole package including the tv i prefer to go for cheaper models in the beginning.
i would like to let the user make the changes also far away from the tv so using another approach like Bluetooth is less an option for now. what i can do is put a timer in the app running on the tv and every x seconds a check is made to the mysql db using php that is running on a shared hosting.
so my question is this, what should be the period for the timer to check if there is an updated on the db? are 30 seconds ok?
do you have another recommendation on how to solve the problem?
i expect to have about 100-150 android tv devices so if i make a call every 30 seconds it means about 300.000 db calls per day. is that to much for shared hosting?
thanx, ilan
I just finished a project of an android app for android tv and mobile. the idea is that you have an app that is always running in the front on the android tv device and a mobile app (b4a/b4i) where you can make changes on what to display on the tv. to update the information on the tv I send a push from the mobile app and everything is updated on the tv.
I tested it on 2 TVs. 1 worked without any problem, but a cheaper one did not receive the push notification. and because the plan is to sell the whole package including the tv i prefer to go for cheaper models in the beginning.
i would like to let the user make the changes also far away from the tv so using another approach like Bluetooth is less an option for now. what i can do is put a timer in the app running on the tv and every x seconds a check is made to the mysql db using php that is running on a shared hosting.
so my question is this, what should be the period for the timer to check if there is an updated on the db? are 30 seconds ok?
do you have another recommendation on how to solve the problem?
i expect to have about 100-150 android tv devices so if i make a call every 30 seconds it means about 300.000 db calls per day. is that to much for shared hosting?
thanx, ilan