Problem with Bluetooth enable function upon screen initialize

hi,
My first lauch of my app (after installation ) problem got solved which previously showed run time error as my app wanted to activate bluetooth on screen start up. Now as I solved this issue by adding some code blocks, I encounter another problem that is :

As installation is done and permissions granted app asks for enabling bluetooth. It is OK upto this point.
when i close my app and BT , then I restart the app , it never asks to enable bluetooth again. This is the issue I am facing.

image

Because the PermissinGranted event will never get triggered sgain
Ask in the Initialize event


Taifun

This post was flagged by the community and is temporarily hidden.

how can I then Trigger BT enable function each time i open screen and I want permission function to be intact as well upon first launch.

Why?

if it is removed then after installation, it will run into run time error as i am also requesting
to enable BT on startup.

ok I will try this

There is no way to subsequently revoke a permission once it has been granted without the user's intervention.

Thank you for reply in fact these are two different activities and independent of each other .Asking permission and asking BT to enable by the app starting looks like a normal activity. I succeeded in doing both of them at once but issue is that again run time error.
actually there must be another screen block that one would use in a if condition . here i am using If condition in the same screen block where is ask for permission grant request. But i think there should be an alternative way of doing that.

Hmm, I don't understand what the problem might be. Post all the relevant blocks and a simple (test) aia that demonstrates the issue.

here are code blocks and the output

image

both things are activated at the same time.

Post the aia or send it to me via PM.

ok sure

FAN_YS1.aia (1.8 MB)

Try this one:
FAN_YS1_new.aia (1.8 MB)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.