Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
New Xcode Template on GitHub
-
No idea about iTunes, but what I use is a program called iExplorer. It allows you to read some files from a connected iOS device, but more importantly you can browse local backups, which also include the AppGroup folder.
-
@dgelessus IOS 8.3 (maybe 8.4, can't remember) made this a lot less useful. Now the app sandbox is not accessible through apps like iExplorer and iFunBox without jailbreak. This means no more going through apps and changing files, nor transferring files that represent game progress between devices.
-
@omz
I'm clearly a bit behind, but I got the template to work - thanks!One thing - I used pickle to store config data in a .dat file. This seems to work while the app is running, but if the app is closed and restarted completely, the config data is reset rather than storing the previous state. Is there a way around this?
-
@chriswilson if you're talking about "running the app" and you mean running it in the Xcode simulator, there won't necessarily be persistent data between sessions because it creates a "virtual" directory where any file modifications in your code are executed, so when you close the simulator's virtual environment, your original files remain intact.
If that's not what you meant, ignore and wait for @omz or someone else to respond,
-
Thanks for your reply @Tizzy
I'm running it on my own phone rather than in the simulator, but as it's in development the same principle might apply I guess. -
@chriswilson in that case, the data should stay persistent between runs of the same build, if you build and install it again, that's not the case. As far as I know you can't count on the data to persist between builds. For example -> build, create file, build, check if file has been created (returns FALSE - it won't exist).
-
@Tizzy
Unfortunately it's not saving and recalling the info even between runs of the same build. -
@chriswilson When a template app is started, it basically copies everything from the "Script" folder (within the app bundle) to a writable directory. This will overwrite any changes you made to files that were also bundled with the app. The idea behind this is to handle changes you made in the Xcode project.
A relatively easy way around this would be to treat everything that you bundle with the app as read-only, and write to different files. E.g. if you bundle a default highscore list, you could call that "HighscoresDefault.dat" or something like that, and write the actual highscores to "Highscores.dat". If "Highscores.dat" doesn't exist yet, you could just copy "HighscoresDefault.dat"...
-
Is it possible to receive (and process) an Apple Push Notification using this template? Anybody get this working?
-
@sfederman no, apps can't watch or read notifications from other apps.
-
I think he means, if you deploy this as your own app, can you have push notifications.
I think youwould need to enable the appropriate entitlement. There are a few other links on that page as well, i think you have to create an ssl certificate, etc.
presumably your delegate needs to implement the appropriate delegate methods
and you need to registerForRemoteNotifications on the main app.I have not tried this, but I have swizzled some of the other local notification handlers with the objc module, in theory this would work in a similar manner.
-
@JonB is correct. I'm not interested in intercepting a notification for another app, I'd like to set one up for a native deployed Pythonista app using this Xcode Template. I need to research & test a bit more, but I was curious if anyone else has already had success. Thank you for the tips...
-
@omz any chance of a update to the Xcode template anytime soon? Or at least make available the necessary binary libraries? I've a script that makes use of the Texture.subtexture() method, which does not seem to be available in this version. Many thanks!
-
Please tell me where I can get the template for Pythonista 3?
-
There is currently no Xcode template for Pythonista 3, but I'm working on something...