On mobile: mergAVRequestMediaAccess "video" and androidRequestPermission "android.permission.CAMERA"

Mike Kerner MikeKerner at roadrunner.com
Wed Mar 1 07:46:18 EST 2023


andrew,
ok, now i'm curious:
do you also do deep linking into your app, itself?
I've thought about doing that, but I've never tried to figure out how.

On Tue, Feb 28, 2023 at 4:13 PM Andrew at MWCM via use-livecode <
use-livecode at lists.runrev.com> wrote:

> >
> > Date: Tue, 28 Feb 2023 10:14:37 -0500
> > From: Mike Kerner <MikeKerner at roadrunner.com>
> > To: How to use LiveCode <use-livecode at lists.runrev.com>
> > Subject: Re: On mobile: mergAVRequestMediaAccess "video" and
> >       androidRequestPermission "android.permission.CAMERA"
> > Message-ID:
> >       <CADCoycOPhyvOovpkv0GbFe3rygWALfVPwDALW=
> bNU3TskH4J2w at mail.gmail.com>
> > Content-Type: text/plain; charset="UTF-8"
> >
> > this isn't an uncommon problem.
> > what other apps on ios do is throw up a separate dialog that directs the
> > user to Settings->Privacy and Security->whatever (in your case, both
> > "Camera" and "Microphone"), and tells the user to return to try again
> when
> > that setting is changed.
>
> Here is a code-block with deep links that I use in an iOS app to do pretty
> much the same thing, except for push notifications instead of camera access
> after the user declines the initial acceptance pop-up. You’ll need to
> change the path to your specific app bundle and update the root from
> NOTIFICATIONS_ID to something else like CAMERA (not 100% certain):
>
> on mouseUp
>    put "To enable Push Notification Settings go to your iOS device
> settings..." & RETURN & RETURN &"Settings -> Indiana On Tap ->
> Notifications" & RETURN & RETURN & "...then select Allow Notifications."
> into tMessage
>    answer tMessage with "Good to know" and "Take me there!"
>    put it into tReply
>    if tReply = "Take me there!" then
>       launch url
> "App-Prefs:root=NOTIFICATIONS_ID&path=com.midwestcoastmedia.indianaontap"
> // iOS 10+
>       if the result is "no association" then
>          launch url
> "prefs:root=NOTIFCATIONS_ID&path=com.midwestcoastmedia.indianaontap" // iOS
> 9
>       end if // the result is "no association"
>    end if // tReply = "Take me there!"
> end mouseUp
>
> —Andrew Bell
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."


More information about the use-livecode mailing list