-
Notifications
You must be signed in to change notification settings - Fork 109
IITC Mobile (Android app)
The Android App behaves like the desktop version, but uses the mobile view, which is optimized for mobile devices, as default.
Furthermore, there are some nice additions:
- it should be much faster than the standard mobile ingress intel map
- supports all official IITC plugins
- easy installation and update of unofficial plugins (installation via plugin preference, click on *.user.js file or URL, email attachement etc.)
- show users current location
- share interface for portal links, portal navigation etc.
- a geolocate button (you have to enable GPS satellites + location access to use this feature)
- in-app search
- configurable fullscreen modes (includes immersive mode on Android 4.4+)
- navigation drawers for IITC panes, layer chooser and highlighters
- in-app screenshots
- developer mode: all script source will be loaded from
<storage_path>/IITC_Mobile/dev/
The App only works with Android 4.0+
-
gradle:
Set the ANDROID_HOME environment variable:
export ANDROID_HOME=/path/to/android_sdk
Then build the app via the build.py script./build.py mobile
-
Android Studio: Just import this project and click the build button.
Ensure that you have total-conversion-build.user.js and user-location.user.js in your assets folder.
This is automatically created, when executing
./build.py mobile
. Otherwise, just copy the scripts to the assets folder.
At the moment, the Android App is a WebView which renders the normal web page.
The IITC script is injected by calling iitc_view.loadIITC_JS(Context)
.
The app uses a local version of the script, which is located in the assets folder.
Communication from app to script is handled by loading Javascript function calls. For example:
iitc_view.loadUrl("javascript: window.alert('foo');");
Communication from script to app is handled by the JavascriptInterface
(see /mobile/src/com/cradle/iitc\_mobile/IITC_JSInterface.java
).
If a method foo(String)
is defined in JSInterface
,
it can be called by android.foo("Hello World")
in the IITC script.
The developer mode can be enabled in the settings.
Create a folder IITC_Mobile/dev/
on your external storage of your Android device
and copy the sources from $IITC_folder/build/mobile/
to it.
If the developer mode is enabled all sources will be loaded from there.
If you want to debug the APK, I suggest reading up on Google’s documentation.
Debugging IITC(M) after it has booted is relatively easy:
you can switch to the “debug” tab, which is a low end developer console.
It renders all calls to console.*
, so you can use it just like you expect.
It may be easier to develop in a desktop browser.
Set it up like explained ),
but fake your user agent or modify the detection in code/smartphone.js
and main.js
.
The device ID is printed to the debug console on IITC boot.
Debugging IITC(M) before it has booted requires the Android Developer Tools. Connecting your device and running adb logcat
should print the debug log to your computer until the low-end dev console mentioned above is available.
For IITC users
-
Guide on how to migrate data from an legacy version of IITC Mobile
-
(click to expand )
Cache (Data caching to prevent reloading)
Controls (Map controls/widgets)
Draw (Allow drawing things onto the current map so you may plan your next move)
Highlighter (Portal highlighters)
- Hide portal ownership
- Highlight portals by level color
- Highlight inactive portals
- Highlight portal weakness
- Highlight high level portals
- Highlight portals by my level
- Highlight portals with ornaments
- Highlight portals that need recharging
- Highlight portals with ornaments
- Highlight portals that need recharging
- Highlight portals missing resonators
- Highlight portals with infrastructure problems
Info (Display additional information)
- Available AP statistics
- Portal count
- Portals list
- Player level guess
- Localized scoreboard
- Missions
- Scoring cycle / checkpoint times
- Layer count
Layer (Additional map layers)
- Find farms on map
- Portal Level Numbers
- Overlay KML / GPX / GeoJSON
- Ingress scoring regions
- Zaprange
- Player activity tracker
- Portal Names
- Keys on map
Map Tiles (Alternative map layers)
- Stamen.com map layers
- Blank map
- Gray Google map
- Bing maps
- OpenStreetMap.org map
- Gaode (高德地图) / AutoNavi map
- Kartverket.no maps (Norway)
- Yandex maps
Portal Info (Enhanced information on the selected portal)
Tweaks (Adjust IITC settings)
Misc (Unclassified plugins)
For plugin developers
For IITC developers