{"id":21903829,"url":"https://github.com/hansemannn/titanium-crashlytics","last_synced_at":"2025-04-15T20:43:45.448Z","repository":{"id":34396144,"uuid":"141885508","full_name":"hansemannn/titanium-crashlytics","owner":"hansemannn","description":"Use the native Crashlytics SDK in Titanium (iOS / Android).","archived":false,"fork":false,"pushed_at":"2025-03-06T09:31:28.000Z","size":55706,"stargazers_count":18,"open_issues_count":3,"forks_count":19,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-29T01:12:03.641Z","etag":null,"topics":["appcelerator","axway","crashlytics","fabric","javascript","native","titanium"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hansemannn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["hansemannn","m1ga"]}},"created_at":"2018-07-22T10:16:52.000Z","updated_at":"2025-03-06T09:30:42.000Z","dependencies_parsed_at":"2024-10-28T11:24:51.968Z","dependency_job_id":"eab34ea4-f375-49ad-9f6d-a9b9b27780bb","html_url":"https://github.com/hansemannn/titanium-crashlytics","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Ftitanium-crashlytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Ftitanium-crashlytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Ftitanium-crashlytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Ftitanium-crashlytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansemannn","download_url":"https://codeload.github.com/hansemannn/titanium-crashlytics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249151949,"owners_count":21221155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appcelerator","axway","crashlytics","fabric","javascript","native","titanium"],"created_at":"2024-11-28T15:29:41.371Z","updated_at":"2025-04-15T20:43:45.422Z","avatar_url":"https://github.com/hansemannn.png","language":"Objective-C","funding_links":["https://github.com/sponsors/hansemannn","https://github.com/sponsors/m1ga"],"categories":[],"sub_categories":[],"readme":"# Crashlytics in Titanium\n\nUse the native Crashlytics iOS / Android SDK in Titanium.\n\n## Supporting this effort\n\nThe whole Firebase support in Titanium is developed and maintained by the community (`@hansemannn` and `@m1ga`). To keep\nthis project maintained and be able to use the latest Firebase SDK's, please see the \"Sponsor\" button of this repository,\nthank you!\n\n## Requirements\n\n- [x] iOS: Titanium SDK 10.0.0+\n- [x] Android: Titanium SDK 9.0.0+\n\n## Setup\n\nIn general, remember to not use any Crashlytics API's before actually opening your first window. While this might not result\nin a crash on iOS, the native Android SDK will error if being used before your app finished launching due to requiring the\nnative `Activity`.\n\n### iOS\n\n1. Create a new folder `scripts/` in your project root\n2. Copy the `run` and `upload-symbols` shell files from this repo's `helper/` directory to `scripts/` in your project\n3. Make sure your Firebase project is configured properly and you have your `GoogleService-Info.plist` in place\n   as described [here](https://github.com/hansemannn/titanium-firebase).\n4. Make sure the upload-symbols file's permissions are correct, running `chmod +x PROJ_ROOT_PATH/scripts/upload-symbols`\n   (replace PROJ_ROOT_PATH with your real project root path)\n\n5. You are ready to go!\n\n### Android\n\n```\nvar crash = require(\"ti.crashlytics\");\ncrash.crash();  // test crash\n```\n\n1. Add the following to the `\u003capplication\u003e` tag inside the manifest configuration in your tiapp.xml:\n```xml\n\u003cmeta-data android:name=\"firebase_analytics_collection_enabled\"\n  android:value=\"true\"/\u003e\n\u003cmeta-data android:name=\"google_analytics_adid_collection_enabled\"\n  android:value=\"true\"/\u003e\n\u003cservice\n  android:name=\"com.google.android.gms.measurement.AppMeasurementService\"\n  android:enabled=\"true\"\n  android:exported=\"false\"/\u003e\n\u003cservice\n  android:name=\"com.google.android.gms.measurement.AppMeasurementJobService\"\n  android:permission=\"android.permission.BIND_JOB_SERVICE\"\n  android:enabled=\"true\"\n  android:exported=\"false\"/\u003e\n\u003cservice\n  android:name=\"INSERT_YOUR_APP_PACKAGE_NAME.gcm.RegistrationIntentService\"\n  android:exported=\"false\"/\u003e\n\u003creceiver\n  android:name=\"com.google.android.gms.measurement.AppMeasurementReceiver\"\n  android:enabled=\"true\"\u003e\n  \u003cintent-filter\u003e\n    \u003caction android:name=\"com.google.android.gms.measurement.UPLOAD\"/\u003e\n  \u003c/intent-filter\u003e\n\u003c/receiver\u003e\n```\n2. You are ready to go!\n\n## Example\n\nSee the [Sample App](https://github.com/hansemannn/titanium-crashlytics-demo/blob/master/README.md) for an example of configuring\nthe required API keys and project settings.\n\n## API's\n\n### Cross platform API's\n\n### `Crashlytics.log(message)`\n\nLog a Custom Event to see user actions that are uniquely important for your app in real-time.\n\n### `Crashlytics.userId = myUserId`\n\nSpecify a user identifier which will be visible in the Crashlytics UI.\n\n### `Crashlytics.recordError({ domain, code, userInfo })`\n\nRecords non-fatal errors. Note: The `code` and `userInfo` parameters are iOS-only.\n\n### Android only API's\n\n### `Crashlytics.crash()`\n\nSimulate a crash (for testing purpose)\n\n### `Crashlytics.throwException()`\n\nSimulate an exception (for testing purpose)\n\n## Author\n\nHans Knöchel ([@hansemannnn](https://twitter.com/hansemannnn) / [Web](https://hans-knoechel.de))\n\n## License\n\nMIT\n\n## Contributing\n\nCode contributions are greatly appreciated, please submit a new [Pull-Request](https://github.com/hansemannn/titanium-crashlytics/pull/new/master)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2Ftitanium-crashlytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansemannn%2Ftitanium-crashlytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2Ftitanium-crashlytics/lists"}