{ "id": "173586", "key": "TIMOB-27156", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2019-05-03T02:59:23.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-06-16T09:06:10.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Hi Titans,\r\n\r\nI was trying to integrate the firebase in-app messaging feature with Titanium and I believe I have strictly followed the instructions from the official website: https://firebase.google.com/docs/in-app-messaging/get-started?platform=android \r\nbut here is the issue I've been pulling my hair these days trying to figure out:\r\n\r\nI have written my own firebase in-app messaging by including all of the dependencies/libraries pulling from Gradle. The module does not have any exposed method in it as it just provide all those libraries to the firebase.core module to enable the in-app messaging feature. However if I included the platform/android/res/values/strings.xml file with the google_app_id value in the test project the app will crash instantly upon the startup. I think it crashed somewhere in the auto-init process provided by firebase but there is no specific log on the crash.\r\n\r\n\r\n{code:java}\r\n[INFO] App successfully installed\r\n[INFO] Starting app: com.kt.test/.TestActivity\r\n[DEBUG] Trying to start the app...\r\n[INFO] Application pid: 18129\r\n[INFO] Project built successfully in 1m 18s 6ms\r\n-- Start application log -----------------------------------------------------\r\n[WARN] zygote: Unexpected CPU variant for X86 using defaults: x86\r\n[INFO] TiApplication: (main) [0,0] checkpoint, app created.\r\n[INFO] MultiDex: VM with version 2.1.0 has multidex support\r\n[INFO] MultiDex: Installing application\r\n[INFO] MultiDex: VM has multidex support, MultiDex support library is disabled.\r\n[DEBUG] AndroidRuntime: Shutting down VM\r\n{code}\r\n\r\n\r\nIf I don't include the strings.xml file then the firebase won't initialize properly and when I call the configure() function in firebase.core module [https://github.com/hansemannn/titanium-firebase-core] it gives me the following error message:\r\n\r\n\r\n{code:java}\r\n[ERROR] TiExceptionHandler: Error: Unsatisfied dependency for component Component<[class com.google.firebase.inappmessaging.display.FirebaseInAppMessagingDisplay]>{2, type=0, deps=[Dependency{anInterface=class com.google.firebase.FirebaseApp, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.analytics.connector.AnalyticsConnector, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.inappmessaging.FirebaseInAppMessaging, type=required, direct=true}]}: interface com.google.firebase.analytics.connector.AnalyticsConnector\r\n..........\r\n[ERROR] TiExceptionHandler:\r\n[ERROR] TiExceptionHandler: com.google.firebase.components.ComponentRuntime.validateDependencies(com.google.firebase:firebase-common@@16.1.0:167)\r\n[ERROR] TiExceptionHandler: com.google.firebase.components.ComponentRuntime.processInstanceComponents(com.google.firebase:firebase-common@@16.1.0:86)\r\n[ERROR] TiExceptionHandler: com.google.firebase.components.ComponentRuntime.(com.google.firebase:firebase-common@@16.1.0:70)\r\n[ERROR] TiExceptionHandler: com.google.firebase.FirebaseApp.(com.google.firebase:firebase-common@@16.1.0:553)\r\n[ERROR] TiExceptionHandler: com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.1.0:365)\r\n[ERROR] TiExceptionHandler: com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.1.0:332)\r\n[ERROR] TiExceptionHandler: firebase.core.TitaniumFirebaseCoreModule.configure(TitaniumFirebaseCoreModule.java:137)\r\n[ERROR] TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)\r\n[ERROR] TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:180)\r\n[ERROR] TiExceptionHandler: org.appcelerator.kroll.KrollRuntime.runModule(KrollRuntime.java:247)\r\n[ERROR] V8Exception: Exception occurred at /root/app/shared/cloud/firebase_api.js:33: Uncaught Error: Unsatisfied dependency for component Component<[class com.google.firebase.inappmessaging.display.FirebaseInAppMessagingDisplay]>{2, type=0, deps=[Dependency{anInterface=class com.google.firebase.FirebaseApp, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.analytics.connector.AnalyticsConnector, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.inappmessaging.FirebaseInAppMessaging, type=required, direct=true}]}: interface com.google.firebase.analytics.connector.AnalyticsConnector\r\n{code}\r\n\r\n\r\nI have checked the said \"com.google.firebase.analytics.connector.AnalyticsConnector\" interface is included in the lib/firebase-measurement-connector-17.0.1.aar file of my firebase.inappmessaging module. I've been stumped by this problem for several days now and have tried all sorts of different versions and combinations of the libraries/configuration and could not fix it. Could you guys please have a look to see what's causing the issue?\r\n\r\nI've tried Ti SDK 7.5.0 + and all have this issue.\r\n\r\nHere is the test project which should demonstrate the issue with all the modules I packaged for this firebase integration.\r\nhttps://www.dropbox.com/s/rnc81u3gy19liow/test.zip?dl=0\r\n\r\nPlease let me know if there is anything I can help with for quickly resolving this issue as we are desperately waiting on this module to work to ship our app.\r\n\r\nThanks,\r\nKai", "attachment": [], "flagged": false, "summary": "Firebase In-App Messaging Android integration crashes the app on the startup", "creator": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac 10.14.4 Mojave Ti SDK 7.5.0 +", "comment": { "comments": [ { "id": "448164", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nThanks for reporting this. Can you please test on 8.0.0.GA and let us know how it goes. It would be helpful if you can share complete console logs here.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-05-03T08:19:09.000+0000", "updated": "2019-05-03T08:19:09.000+0000" }, { "id": "448165", "author": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Rakhi,\r\n\r\nI've tried 8.0.0.GA as well, same result.\r\n\r\nI don't think the rest of the log would matter that much since it crashed instantly without launching anything.\r\n\r\nI've also attached the dropbox link in the description above to my sample app for you.\r\n\r\nPlease let me know if you need anything else.\r\n\r\nThanks,\r\nKai", "updateAuthor": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-03T08:54:45.000+0000", "updated": "2019-05-03T08:54:45.000+0000" }, { "id": "448425", "author": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It's been two weeks now.\r\n\r\nCould someone please take a look at the issue?\r\n\r\nAt least point me to the right direction for fixing it myself if possible?", "updateAuthor": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-16T12:59:34.000+0000", "updated": "2019-05-16T12:59:34.000+0000" }, { "id": "449113", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~kenjorai],\r\nThanks for your feedback. We are able to reproduce the issue on our end. We are working to fix this. You will be notified soon.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-06-16T09:05:57.000+0000", "updated": "2019-06-16T09:05:57.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }