{"action":"opened","issue":{"url":"https://api.github.com/repos/mattermost/mattermost-mobile/issues/2303","repository_url":"https://api.github.com/repos/mattermost/mattermost-mobile","labels_url":"https://api.github.com/repos/mattermost/mattermost-mobile/issues/2303/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/mattermost-mobile/issues/2303/comments","events_url":"https://api.github.com/repos/mattermost/mattermost-mobile/issues/2303/events","html_url":"https://github.com/mattermost/mattermost-mobile/issues/2303","id":376272760,"node_id":"MDU6SXNzdWUzNzYyNzI3NjA=","number":2303,"title":"App built from github is block in start screen","user":{"login":"dynatom","id":44660400,"node_id":"MDQ6VXNlcjQ0NjYwNDAw","avatar_url":"https://avatars3.githubusercontent.com/u/44660400?v=4","gravatar_id":"","url":"https://api.github.com/users/dynatom","html_url":"https://github.com/dynatom","followers_url":"https://api.github.com/users/dynatom/followers","following_url":"https://api.github.com/users/dynatom/following{/other_user}","gists_url":"https://api.github.com/users/dynatom/gists{/gist_id}","starred_url":"https://api.github.com/users/dynatom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dynatom/subscriptions","organizations_url":"https://api.github.com/users/dynatom/orgs","repos_url":"https://api.github.com/users/dynatom/repos","events_url":"https://api.github.com/users/dynatom/events{/privacy}","received_events_url":"https://api.github.com/users/dynatom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-01T06:40:58Z","updated_at":"2018-11-01T06:40:58Z","closed_at":null,"author_association":"NONE","body":"#### Summary\r\nApp built from github is not working.\r\n\r\n#### Environment Information\r\n\r\n- Device Name: Samsung Galaxy A5\r\n- OS Version: Android 8.0.0, Samsung Experience 9.0, Knox 3.1, Knox API 25, TIMA 3.3.0\r\n- Mattermost App Version: Github master branch\r\n- Mattermost Server Version: Mattermost Enterprise Edition\r\n\r\n#### Steps to reproduce\r\nLaunch the app after build with following step.\r\n\r\n1.Get code from [github](https://github.com/mattermost/mattermost-mobile) master branch\r\n\r\n2.environments:\r\n`export id1=com.dyna.mattermosta\r\nexport id2=$id1.MattermostShare\r\nexport VERSION_NUMBER=1.0.2\r\nexport BUILD_NUMBER=2\r\nexport APP_NAME=\"DynaMattermostA\"\r\nexport MAIN_APP_IDENTIFIER=$id1\r\nexport SUPPLY_PACKAGE_NAME=$id1\r\nexport EXTENSION_APP_IDENTIFIER=$id2`\r\n\r\n3.Replace android\\app\\google-services.json with [google-services.json](https://drive.google.com/file/d/14HxSVvBynTjVCgtRVdcIqpwWZO6pSn4y/view?usp=sharing)\r\n\r\n4.Add these to android\\app\\build.gradle\r\n`dependencies {\r\n    implementation 'com.google.firebase:firebase-core:16.0.1'\r\n}\r\n//bottom of the file\r\napply plugin: 'com.google.gms.google-services'`\r\n\r\n5.Change value with google-services.json to android\\app\\src\\main\\AndroidManifest.xml\r\n`<meta-data android:name=\"com.wix.reactnativenotifications.gcmSenderId\" android:value=\"563680424932\\\"/>`\r\n\r\n6.Copy assets\\base\\config.json to assets\\override\\config.json and change value\r\n`\"DefaultServerUrl\": \"http://35.194.214.80:8066\",\r\n\"AutoSelectServerUrl\": true,`\r\n\r\n7.In mac console, use `make build-android && make run-android`\r\nMac Information:\r\nmacOS High Sierra\r\nversion 10.13.6 (17G65)\r\nMac mini (Mid 2011)\r\n\r\n#### Expected behavior\r\nAfter launch the app.\r\nIt always stay in this [screen](https://imgur.com/747q4aR).\r\n\r\n#### Observed behavior\r\nIn the adb [logcat.](https://drive.google.com/file/d/108_FV5_FkZ_M5r1QQgAKTW-3GBIWcS-1/view?usp=sharing)\r\nI found this error with ReactNative.\r\n`2018-10-31 14:07:50.428 22780-23537/com.dyna.mattermosta E/unknown:ReactNative: Exception in native call\r\n    java.lang.RuntimeException: Unable to load script from assets 'index.android.bundle'. Make sure your bundle is packaged correctly or you're running a packager server.\r\n        at com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets(Native Method)\r\n        at com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromAssets(CatalystInstanceImpl.java:216)\r\n        at com.facebook.react.bridge.JSBundleLoader$1.loadScript(JSBundleLoader.java:32)\r\n        at com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:243)\r\n        at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1114)\r\n        at com.facebook.react.ReactInstanceManager.access$900(ReactInstanceManager.java:116)\r\n        at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:913)\r\n        at java.lang.Thread.run(Thread.java:764)\r\n2018-10-31 14:07:50.434 22780-22780/com.dyna.mattermosta E/unknown:ReactNative: Unable to launch redbox because react activity is not available, here is the error that redbox would've displayed: Unable to load script from assets 'index.android.bundle'. Make sure your bundle is packaged correctly or you're running a packager server.`\r\n\r\nAt another [test](https://drive.google.com/file/d/1Cww0-c-n4_0N6qZ5w2-d0fnVaFWZ_Xjn/view?usp=sharing)\r\n`10-29 14:01:33.694 18148 18148 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbp;\r\n10-29 14:01:33.694 18148 18148 E AndroidRuntime: \tat com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source:2)\r\n10-29 14:01:33.694 18148 18148 E AndroidRuntime: \tat android.app.ActivityThread.installProvider(ActivityThread.java:6578)\r\n10-29 14:01:33.694 18148 18148 E AndroidRuntime: \tat android.app.ActivityThread.installContentProviders(ActivityThread.java:6133)\r\n10-29 14:01:33.694 18148 18148 E AndroidRuntime: \tat android.app.ActivityThread.handleBindApplication(ActivityThread.java:6043)\r\n10-29 14:01:33.694 18148 18148 E AndroidRuntime: \tat android.app.ActivityThread.-wrap1(Unknown Source:0)\r\n10-29 14:01:33.694 18148 18148 E AndroidRuntime: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)\r\n10-29 14:01:33.694 18148 18148 E AndroidRuntime: \tat android.os.Handler.dispatchMessage(Handler.java:105)\r\n10-29 14:01:33.694 18148 18148 E AndroidRuntime: \tat android.os.Looper.loop(Looper.java:164)\r\n10-29 14:01:33.694 18148 18148 E AndroidRuntime: \tat android.app.ActivityThread.main(ActivityThread.java:6944)\r\n10-29 14:01:33.694 18148 18148 E AndroidRuntime: \tat java.lang.reflect.Method.invoke(Native Method)\r\n10-29 14:01:33.694 18148 18148 E AndroidRuntime: \tat com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)\r\n10-29 14:01:33.694 18148 18148 E AndroidRuntime: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)`"}}
{"actor":{"display_login":"dynatom"}}