Is config.json file encrypted? - appcelerator

I have a private key that I am using to hash data, that key is also on the server. I was wondering if its safe to store this value in the config.json file in an Appcelerator Alloy application? When decompiling the ipa/apk is that something anyone could see?
If not is there a better location?

Alloy will compile the config.json file into CFG.js file which like all other JS files in a Titanium app will be encrypted. By default the key is stored in a compiled Obj-C class in the app.

Related

I cant load HTML file into WebView from app specific storage since Android 11 (SDK30)

My App has the following use case:
We download a geojson file, a html file and some audio files from a server for a specific language a user has chosen and we are saving this in the app specific file directory.
The directory path is the following for each use case:
For the HTML file we have:
/storage/emulated/0/Android/data/my.example.com/files/ExampleApp/EnginePayload/de/html-file.html
For the json file we have:
/storage/emulated/0/Android/data/my.example.com/files/ExampleApp/LocationPayload/de/geojson-file.geojson
Audiodata:
/storage/emulated/0/Android/data/my.example.com/files/ExampleApp/Audio/de/intro.mp3
/storage/emulated/0/Android/data/my.example.com/files/ExampleApp/Audio/de/outro.mp3
and so on...
Since i have to change the minSDK and compileSDK to 30 i don't get the files to work.
I load the html-file.getAbsolutePath() to the webView but the webview client does not call ANY callback!
The audio files will not be started, because we use javascript functions to do that.
As i unterstand it, the app specific directory does not have to be changed because even on Android 11, the app has permission to read and write its own created files.
The moment i change it back to SDK 29, everything is working.
I don't know what to do. Can someone help me please?
I fixed it myself after hours!
My assumptions were right. The app had access to the files, because the app created them itself. so there was not an issue here to read the files...
Here is my fix and i hope it will help someone in the future:
There was something missing in the settings for the WebView.
webView.getSettings().setAllowFileAccess(true);
This allows me now to load a html file (with absolute Path) from the app specific directory for Android 11.
Here is my code:
webView.getSettings().setAllowFileAccess(true);
File extDir = cxt.getExternalFilesDir(null);
//htmlPath is something like this: "ExampleApp/EnginePayload/de/html-file.html"
File twine = new File(extDir.toString() + "/" + htmlPath);
webView.loadUrl(twine.getAbsolutePath());

how to change android package name on phonegap build website

i am trying to upload my apk on google play store but i am seeing this error: You need to use a different package name because com.phonegap.www is used by a pre-installed application. To upload a pre-installed application, please contact Google Play Developer Support. Learn more.
You need to use a different package name because "com.phonegap.www" already exists in Google Play. i just export my project as html from anyflip book as maker i didn't follow the phonegap normal build, please tell me how to change my package nameenter image description here
Change it in your config file before you upload anything.
In the root folder you have a file called config.xml. The second line of that file starts with <widget and it has an attribute id="com.phonegap.www". Change it to your own domain name for the app you're building, or to any value that should be globally unique. Then zip your folder, upload it to PhoneGap and try again.

How can insert resurce string file in appcelerator alloy

I want to build my appcelerator application with multi-language.
So I have created one string.xml file and an "en" folder under i18n.
In my controller.js to get the text from this file, I use the following:
L(lang+"login_title")
But when I try to build my application all folders and files under i18n folder are automatically deleted.
What can I do?
Alloy 1.8 relocates i18n folder into app please read this post: relocates-i18n

Quicklook Webarchive?

Currently writing an app that should be able to quicklook webarchive. Copied data from safari also happens to be saved as .webarchive.
Is there a way to show them ? Or do I need to convert the webarchive, or by extracting html first ?
You should be able to use the WebArchive class from WebKit or my open source implementation DTWebArchive: https://github.com/Cocoanetics/DTWebArchive
This gives you access to the individual parts that make up the web archive, which is essentially just a binary plist.

What is the help file format for Mac app?

I want to migrate one of my Windows app to Mac.
As we know, Windows app help file format is .chm.
Does Mac app has special format?
or just the format html?
Welcome any comment
Thanks
interdev
Have you read the documentation? It's a simple static HTML site embedded as a resource. You also use the Help Indexer app (part of Xcode Tools) to create the needed index file then you set a couple of keys in your Info.plist file to tell your app it's there.

Resources