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.
Need to know if these app projects are possible in Live Code
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 1
- Joined: Wed Sep 27, 2017 1:34 pm
Re: Need to know if these app projects are possible in Live Code
After some messages on the forum you'll be able to post links.
NoPeaceLogic wrote: ↑Wed Sep 27, 2017 4:15 pmMusic 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.
Maybe, there is Google message protocolPeaceLogic wrote: ↑Wed Sep 27, 2017 4:15 pmText 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.
NoPeaceLogic wrote: ↑Wed Sep 27, 2017 4:15 pmEmail 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.
On iOS yes, on Android not at the moment. However some devices have a custom scheme url to set phone alarms.PeaceLogic wrote: ↑Wed Sep 27, 2017 4:15 pmReminder app:
Needs to be able to activate alarm sounds for scheduled reminders while in background mode and phone is locked.
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
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- VIP Livecode Opensource Backer
- Posts: 9838
- 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
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.
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 7237
- 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
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.Needs to be able to check for mail and send automated replies in the background while phone is in locked mode.
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
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 7237
- 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
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.FourthWorld wrote: ↑Tue Oct 03, 2017 3:57 pmRe: 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?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com