Forum Archive

Access to native iPhone Features?

Logan

I have had a lot of fun building applets in Siri Shortcuts by I may be moving away from iOS in the near future.

So I’d love to be writing applets that could work on both iOS and Android.
So I was wondering could I do everything I do in Siri Shortcuts in Pythonista 3?

I worry that Pythonista wont be able to access phone functions like:
* Vibrate
* Notifications
* speak text
* quick look (a type of text reader with pages)
* voice to text
* pop up menu
* and widgets in the notifications section so you can run scripts without unlocking your phone

Has anyone used this app and knows if it can access these features?
Thanks!

ccc

Read the docs. http://omz-software.com/pythonista/docs

http://omz-software.com/pythonista/docs/ios/index.html

JonB

Everything on your list is doable in pythonista. Widgets are also supported, though there are limitations on memory that limit somewhat of what you can do with today widgets. Shortcuts can also launch pythonista scripts.

Most native frameworks can also be accessed via the objc_util module -- though this can be fairly difficult until you gain familiarity with both objc_util, ctypes and the frameworks in question.

The code will be totally different on Android -- the nativey things in iOS use nativey modules in pythonista. Android speech modules won't work in pythonista, and vice versa for instance.

cvp

@JonB said:

Everything on your list is doable in pythonista

I don't think we can run a Pythonista script without unlocking the iDevice by tapping a notification. I wish I'm wrong.

JonB

You aren't wrong... I thought he meant today widget. I guess I don't know if today widgets run when.locked?

cvp

@JonB I think that nothing really runs when locked, notifications excepted

eliotradisa

@JonB said:

Everything on your list is doable in [ https://luckypatcher.cam/pythonista. Widgets are also supported, though there are limitations on memory that limit somewhat of what you can do with today https://kodi.software/widgets https://nox.tips/ Shortcuts can also launch pythonista scripts.

Everything on your list is doable in pythonista. Widgets are also supported, though there are limitations on memory that limit somewhat of what you can do with today widgets. Shortcuts can also launch pythonista scripts.