Page 1 of 1

Open up device settings

Posted: Fri Jan 18, 2019 9:32 pm
by EddieLee
Hi,

I have a notification settings function that i would like to build. Is it able that when the user clicks on a button, it will open up the application permission and the user would be able to off the notification?

This development is only for android applications only.

Re: Open up device settings

Posted: Mon Jan 21, 2019 2:26 pm
by EddieLee
Or is there anyway then when a user presses a button, it will open the settings application of the device?

Re: Open up device settings

Posted: Mon Jan 21, 2019 5:01 pm
by bogs
Well, you can open the settings through code, but how you would do it in Lc isn't something I know, nor am I sure it is even possible, as I don't see it in the Lessons here, or here.

Of course, that doesn't mean it is not possible. Hopefully someone that knows for sure will chime in :D

Re: Open up device settings

Posted: Wed Jan 23, 2019 6:49 am
by EddieLee
Hi bogs

Thanks for the help, would hope someone with this knowledge to provide some help.

Re: Open up device settings

Posted: Wed Jan 23, 2019 8:46 am
by FourthWorld
Does the Settings app have a URL scheme? If so I would imagine "launch URL <URL>" would work.

Re: Open up device settings

Posted: Wed Jan 23, 2019 3:45 pm
by EddieLee
Hi fourth world,

I figure URL would work but idk what's the URL scheme for settings, any idea?

Re: Open up device settings

Posted: Wed Jan 23, 2019 4:25 pm
by FourthWorld
I haven't looked into it, but the OS docs should provide it if available. If not, I'll bet there's a lower level API available, and that could be accessed via LiveCode Builder.

Re: Open up device settings

Posted: Wed Jan 23, 2019 9:11 pm
by EddieLee
Hi fourth world

I'll try and keep this post updated with my progress