Page 1 of 1

Need to know if these app projects are possible in Live Code

Posted: Wed Sep 27, 2017 4:15 pm
by PeaceLogic
I’m just starting to learn Live Code. I need to know if the following projects listed below are possible with Live Code for iOS and Android. Thank you for your help :)

On Apples developer site I found this information for background processes. Are all these background modes available through the Live Code development environment?

(can't post link. BB will not allow me to post the link to apple's dev site. How can I get permission for this? Google "ios Declaring Your App’s Supported Background Tasks" It's the first link

Music app:
Needs to play in background. Needs to be able to accept keyboard commands from bluetooth keyboard and if possible accept those commands while the phone is in locked mode.

Text Messaging app:
Needs to be able to receive new incoming messages and send automated reply while in the background and phone is in locked mode. I’ll be using the twilio API for text messaging. It also needs to be able to send local notifications to the notifications panel on the phone.

Email app:
Needs to be able to check for mail and send automated replies in the background while phone is in locked mode. This will be a standalone email app that does not use the native phone email app. Needs to be able to send local notifications to the notification panel on the phone.

Reminder app:
Needs to be able to activate alarm sounds for scheduled reminders while in background mode and phone is locked.

Re: Need to know if these app projects are possible in Live Code

Posted: Tue Oct 03, 2017 1:43 pm
by MaxV
PeaceLogic wrote:
Wed Sep 27, 2017 4:15 pm
(can't post link.)
After some messages on the forum you'll be able to post links.
PeaceLogic wrote:
Wed Sep 27, 2017 4:15 pm
Music app:
Needs to play in background. Needs to be able to accept keyboard commands from bluetooth keyboard and if possible accept those commands while the phone is in locked mode.
No
PeaceLogic wrote:
Wed Sep 27, 2017 4:15 pm
Text Messaging app:
Needs to be able to receive new incoming messages and send automated reply while in the background and phone is in locked mode. I’ll be using the twilio API for text messaging. It also needs to be able to send local notifications to the notifications panel on the phone.
Maybe, there is Google message protocol
PeaceLogic wrote:
Wed Sep 27, 2017 4:15 pm
Email app:
Needs to be able to check for mail and send automated replies in the background while phone is in locked mode. This will be a standalone email app that does not use the native phone email app. Needs to be able to send local notifications to the notification panel on the phone.
No
PeaceLogic wrote:
Wed Sep 27, 2017 4:15 pm
Reminder app:
Needs to be able to activate alarm sounds for scheduled reminders while in background mode and phone is locked.
On iOS yes, on Android not at the moment. However some devices have a custom scheme url to set phone alarms.
On iOS see http://livecodeitalia.blogspot.it/2017/ ... round.html

Re: Need to know if these app projects are possible in Live Code

Posted: Tue Oct 03, 2017 3:57 pm
by FourthWorld
Re: background music
LC includes components for playing music in the background on at least iOS (not sure about Android). The harder part is controlling the playback from a physical keyboard while the screen is locked. What apps can do that? If we can find the APIs needed for that you may be able to use them with LC Builder, a language provided in LC for interfacing with lower-level OS APIs.

Re email:
SMTP libraries are available, but in many cases a better option is to set up a relay server with a REST API to send emails. LC's support for HTTP/S makes most REST APIs straightforward to work with.

Re: Need to know if these app projects are possible in Live Code

Posted: Tue Oct 03, 2017 4:41 pm
by jacque
Needs to be able to check for mail and send automated replies in the background while phone is in locked mode.
I'd be surprised if you can find any app that's allowed to send automated replies in the background, it's similar to malware behavior and mobile operating systems disallow it. You could post a message to the server instead.

On Android, newer versions of the OS carefully manage memory use by disallowing most background activity while the phone is sleeping, so if timing is important this may not be workable for general use. However there's a user-controlled setting that allows specified apps to operate in the background but every user must set it individually. The default behavior is to delay all background activity to predefined time slices every so often.

Re: Need to know if these app projects are possible in Live Code

Posted: Tue Oct 03, 2017 4:49 pm
by jacque
FourthWorld wrote:
Tue Oct 03, 2017 3:57 pm
Re: background music
LC includes components for playing music in the background on at least iOS (not sure about Android). The harder part is controlling the playback from a physical keyboard while the screen is locked. What apps can do that?
None I'd guess. It also wouldn't work when the device is awake if the app isn't frontmost. Keystrokes always go to the currently active app.