Some difficult (for me) questions about Pythonista
-
Hey guys,
I'm back and tested my app built with some of your help :)
now I have some special questions...-
I'm using
console.login_alert()
to authenticate on my app:
Is it possible to use FaceID to log in? -
Is it possible to fix Landscape or Portrait when I run my App?
-
When I'm in my app and I don't use it for 2min (my Setting) it goes in "Standby mode" is it possible to lock this function??
-
I use an MYSQL Server to save (Materials) ... is there a way to say my Server when I'm logged in they don't go in Standby mode ??
Thank you guys a lot for your great work and help here :D
p.s.
better later as never
Happy New Year
-
-
@cvp said:
Anyway, @DavinE said he uses ui, not scene.
Is Scene better then ui ?
and when i change to scene need i change everything ?
-
@JonB said:
Re FaceId, I believe this is the same as touchid in iOS. The code below should work with face for devices that have face instead of touch.
https://github.com/tdamdouni/Pythonista/blob/master/omz/touchid.py
Is there another Solution for FaceID ?
-
@DavinE said:
Is Scene better then ui ?
I didn't say that. But it seems that ui does not support anymore orientation parameter in present.
-
@cvp said:
@DavinE said:
Is Scene better then ui ?
I didn't say that. But it seems that ui does not support anymore orientation parameter in present.
ahh okay that's why orientation did not work for me....
When i use Scene is it a lot of work to change ?
or can i change only the name of it ;) ?
-
@DavinE said:
When i use Scene is it a lot of work to change ?
or can i change only the name of it ;) ?It will depend on the process, and I have to say that I don't know anything about Scene. Hoping that other guys in this forum could help you.
-
@DavinE,
orientations
needs to be a sequence, so make it a list likeorientations=['landscape']
.
-
@DavinE When I said that orientation did not work, I forgot to add this is for an iPad.
-
@DavinE for faceid, what do you get when you call is_available()?
it may be that we need to try different values for the policy number -- i cant seemt to access apple documetation anymore on my ipad, so not sure.
-
@mikael said:
@DavinE,
orientations
needs to be a sequence, so make it a list likeorientations=['landscape']
.You are right @mikael this works fine!
@cvp said:
@DavinE When I said that orientation did not work, I forgot to add this is for an iPad.
This is okay i just want to lock it on an iPhone xD
-
@JonB said:
@DavinE for faceid, what do you get when you call is_available()?
I get
True
.... for whatever Reason...@JonB said:
it may be that we need to try different values for the policy number -- i cant seemt to access apple documetation anymore on my ipad, so not sure.
i try with other Numbers etc. but it always crash Pythonista....
-
@DavinE Have you tried with allow_passcode=False?
-
@JonB no but i did it ...
It crashes Pythonista
-
For objc crashes, check for the file in your Documents folder that has the traceback. I think this is called something like _obj_exception.txt (I forget the name, but it will be the most recent file in This Ipad folder)
-
When i use
allow_passcode=False
it crashes but there‘s no file...When i change
policy = 2
topolicy = 3
it crashes too but with an file:The app was terminated due to an Objective-C exception. Details below: 2021-02-04 20:35:37.517948 Error Domain=com.apple.LocalAuthentication Code=-1001 "Unknown policy: '3'" UserInfo={NSLocalizedDescription=Unknown policy: '3'}
-
@JonB, @DavinE, policy = 2 is correct, but:
”In any project that uses biometrics, include the NSFaceIDUsageDescription key in your app’s Info.plist file. Without this key, the system won’t allow your app to use Face ID.”
Not at all sure Pythonista has it.
-
That‘s sad to hear....
But good to know