Where is Android app data stored for Titanium key value pairs? - titanium

In Titanium you can set and get data using:
Ti.App.Properties.setString("token", "")
A customer has an issue with a live app. I suspect it has something to do with how some of this data is set.
How can I find out what the values are for his phone? Where is it stored?
I assume it's in a file somewhere but where???

I'm not sure if it's possible to retrieve the local properties in the file system of the phone itself. And even if that's possible I assume that those keys / values are encrypted.
The thing I know is that Appcelerator uses pre-reserved keys in local properties. Meaning that every time you build your app the key will be overridden. I often, instead of general key names, use more descriptive key names like 'api_token' or something like that.
I'm not sure if this helps but another thing that you could try is to log the incoming token on the server end and evaluate from there.

Related

Is it possible to change AppName in iTunesConnect before release (use a dummy name while in testflight phase)

I know this has been asked before, but testflight has recently been changed and adopted by apple, and now the app is required to be created through iTunesConnect.
Now, is it possible to create an app with a dummy name for now, and change it later?
An alternative solution could be deleting the old-named app, and creating a brand new one. Then, I suppose I will also need to remove the previous bundleID from my dev account and create a new one for the new build with the new name. Assuming I don't purchase specific licenses for the dummy bundleID, do I suffer any kind of loss with this method? (like bundleID quota for dev account or similar things like "x number of things I can have" is now reduced by 1 kind of things).
A bonus question: There are app names with the format X - Y, for example: "FooApp - Return of the foo". Is this specified under appName only? Does it make sense to create a bundleID www.user.FooApp and have your name "FooApp - Return of the foo"?
Thank you
I would also like to point out now that I have gone further into the project, YES it is indeed changeable.
When you upload your archive to iTunesConnect, you are then allowed change the app name where you set the other metadata. You can try any different name (not related to bundleID), and see if it is reserved or not.
The short answer : yes.
I changed my app name in XCODE, and registered a matching profile, including certs in Itunes Connect. It worked as expected.
Bonus Q: as I understand it the "www-xx-com" is simply an identifier. It doesn't have any intelligence built into it.
Please Note: I was doing internal testing. Not External...

How can I get store id in the bigcommerce theme?

I need the store id for an external js script that will be put in the theme's header and try to find the store based on this id (on our side).
If just trying to grab it manually, you can find it by logging in to the store. The URL will be https://store-XXXXXX.mybigcommerce.com/admin. XXXXXX is the store ID.
If trying to get it via the API, you will want to use the Store resource (https://developer.bigcommerce.com/api/stores/v2/store_information).
I am not aware of any supported way how to get Store ID.
Unsupported way (which theoretically can break anytime, but I believe it should work for quite long time) is to get it in Javascript from Fornax.configuration.defaultEventProperties.storeId variable.

Adding licence field to WSO2 API in API manager

I have the need to add a licence field to the APIs published by the API manager.
It does not seems to be any extension point beyond the api.rxt file in the resource folder.
If I modify the file and run the application the carbon app correctly show the added field, but nor the publishe nor the store are able to get the field and there is no way to get it also with REST APIs since it calls a method of a class that (in later versions) outputted fields positionally.
Is it possible to add the field, without running the risk of crashing the API Manager?
Which is the correct way?
Thanks
This change cannot be done without modifying the code. When an API is created from the Publisher app, it gets stored in the registry. The api.txt you modified, only defines the structure of this stored artifact. It may add a new field to the artifact, but to correctly populate that field, you need to modify several methods in APIProviderHostObject and APIProviderImpl + several Jaggery scripts.

How to modify the default receiver list in system Mail app

I'm using Objective-C. I wonder is there any plug-ins or libraries that can allow me to modify the default receiver list in system Mail app?
For example, I have made an app which can scan a card and fetch the E-mail information on it.
Now, I'd like to put the E-mail data I've fetched into system Mail app's receiver list. That is, when I use the system Mail app and write a new mail, I can see the E-mail address I fetched when I type some letters in the receiver column.
Is that possible to achieve?
This list is stored as a Sqlite database and it should be possible to append to it from another process, even while Mail.app is running. I haven't tested it, though.
The following article should help. It describes how to delete entries but adding new ones would work in pretty much the same way: http://hints.macworld.com/article.php?story=20110516152604993

Using JSON to update app's content in iOS

I'm about to create an application that uses JSON to update its content.
This is how I planned it to work:
When application starts, it checks (with internet connection is available) if the JSON file set on remote server is newer than the one stored localy - if it is then it's downloaded.
Then, the application applies data from that JSON to the content. For example, to the "Contact" information - it applies data like phone numbers etc.
My question is, is it in your opinion, a good technique to update appliactions content?
Does anynone had an experience with building app with this kind of idea?
Best regards,
Zin
Of course you can do this. One thing that may lead to a better user experience would be to ask the user for his permission to download new content (if there is something new).
This is a normal thing to do. I have a phonebook app that does exactly this. On a side note, if you need a network class to handle the web-service interaction, see this SO post. I wrote a custom network class that works with AFNetworking.