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

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
PeaceLogic
Posts: 1
Joined: Wed Sep 27, 2017 1:34 pm

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

Post by PeaceLogic » Wed Sep 27, 2017 4:15 pm

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.

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

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

Post by MaxV » Tue Oct 03, 2017 1:43 pm

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
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9824
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

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

Post by FourthWorld » 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? 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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7229
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

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

Post by jacque » Tue Oct 03, 2017 4:41 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7229
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

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

Post by jacque » Tue Oct 03, 2017 4:49 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Talking LiveCode”