Title: Blank screen after exiting app with android back button · Issue #2088 · NativeScript/nativescript-angular · GitHub
Open Graph Title: Blank screen after exiting app with android back button · Issue #2088 · NativeScript/nativescript-angular
X Title: Blank screen after exiting app with android back button · Issue #2088 · NativeScript/nativescript-angular
Description: Environment ‼ Update available for component nativescript. Your current version is 6.0.3 and the latest available version is 6.2.2. ‼ Update available for component tns-core-modules. Your current version is 6.0.7 and the latest available...
Open Graph Description: Environment ‼ Update available for component nativescript. Your current version is 6.0.3 and the latest available version is 6.2.2. ‼ Update available for component tns-core-modules. Your current v...
X Description: Environment ‼ Update available for component nativescript. Your current version is 6.0.3 and the latest available version is 6.2.2. ‼ Update available for component tns-core-modules. Your current v...
Opengraph URL: https://github.com/NativeScript/nativescript-angular/issues/2088
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Blank screen after exiting app with android back button","articleBody":"**Environment**\r\n‼ Update available for component nativescript. Your current version is 6.0.3 and the latest available version is 6.2.2.\r\n‼ Update available for component tns-core-modules. Your current version is 6.0.7 and the latest available version is 6.2.1.\r\n‼ Update available for component tns-android. Your current version is 6.0.2 and the latest available version is 6.2.0.\r\n‼ Update available for component tns-ios. Your current version is 6.0.2 and the latest available version is 6.2.0.\r\n \r\n**Describe the bug**\r\nUsing the Android back button, I go back through the page history until I get to the end of the stack, at which point the back button closes the app. When I resume the app the screen is sometimes blank. I have logged the application, Angular and Android events to see if I can see what is happening:\r\n\r\n// Back button out of app\r\nJS: Android Event: activityBackPressed, Activity: com.tns.NativeScriptActivity@4e5855\r\nJS: Application Event: suspend\r\nJS: Android Event: activityPaused, Activity: com.tns.NativeScriptActivity@4e5855\r\nJS: Android Event: activityStopped, Activity: com.tns.NativeScriptActivity@4e5855\r\nJS: Application Event: exit\r\nJS: Destroy: home\r\nJS: Destroy: app.component\r\nJS: Android Event: activityDestroyed, Activity: com.tns.NativeScriptActivity@4e5855\r\n\r\n// Relaunch the app\r\nJS: Application Event: launch\r\nJS: Init: app.component\r\nJS: Angular is running in the development mode. Call enableProdMode() to enable the production mode.\r\nJS: Init: home\r\nJS: Android Event: activityStarted, Activity: com.tns.NativeScriptActivity@7534bd4\r\nJS: Android Event: activityResumed, Activity: com.tns.NativeScriptActivity@7534bd4\r\nJS: Application Event: resume\r\n\r\nAs you can see from above, when using the back button out of the app, the home and app.components are destroyed and reinitialised on resumption. But, although the app and home components are created the screen is sometimes blank.\r\n\r\nWhen using the Overview or Home Android buttons the events are different and there are no errors when resuming the app. In particular, notice that app.component home component are not destroyed and the saveActivityState event is triggered:\r\n\r\n// Exit with Home or Overview button\r\nJS: Application Event: suspend\r\nJS: Android Event: activityPaused, Activity: com.tns.NativeScriptActivity@7534bd4\r\nJS: Android Event: activityStopped, Activity: com.tns.NativeScriptActivity@7534bd4\r\nJS: Android Event: saveActivityState, Activity: com.tns.NativeScriptActivity@7534bd4, Bundle: Bundle[{com.google.app_measurement.screen_service=Bundle[{referrer_name=NativeScriptActivity, id=8219038340691230053, name=null}], android:viewHierarchyState=Bundle[{android:views={7=com.telerik.android.primitives.widget.sidedrawer.SideDrawerState@3b95c27, 8=android.view.AbsSavedState$1@fec84d5, 9=HorizontalScrollView.SavedState{d2a4ed4 scrollPosition=0 isLayoutRtl=false}, 16908290=android.view.AbsSavedState$1@fec84d5, 2131296266=android.view.AbsSavedState$1@fec84d5, 2131296277=android.view.AbsSavedState$1@fec84d5}}], android:lastAutofillId=1073741823, android:fragments=android.app.FragmentManagerState@b00587d}]\r\n\r\n// Resume\r\nJS: Android Event: activityStarted, Activity: com.tns.NativeScriptActivity@7534bd4\r\nJS: Android Event: activityResumed, Activity: com.tns.NativeScriptActivity@7534bd4\r\nJS: Application Event: resume","author":{"url":"https://github.com/james-wynne-dev","@type":"Person","name":"james-wynne-dev"},"datePublished":"2019-11-25T17:09:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2088/nativescript-angular/issues/2088"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5c908853-8986-4af4-8318-ccce4b4b3f12 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85D2:1625C5:534711C:6C322A0:69752335 |
| html-safe-nonce | a8118fe96d8e5e5b9a7db3d7a126e4e59326d7f5333798d2545e4d616d0c207a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUQyOjE2MjVDNTo1MzQ3MTFDOjZDMzIyQTA6Njk3NTIzMzUiLCJ2aXNpdG9yX2lkIjoiNjg4Mzc0Mjg1Mzg1OTk3NTk4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 68e7256c86e06e6fee3dc0b5724cf94f51ed1ddeddaf9e11cdb25e13bc5528da |
| hovercard-subject-tag | issue:528221421 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-angular/2088/issue_layout |
| twitter:image | https://opengraph.githubassets.com/94c4d4da4581767589edf921c382e1e2dfb9bb83ce5239f74453d93e50e77b85/NativeScript/nativescript-angular/issues/2088 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/94c4d4da4581767589edf921c382e1e2dfb9bb83ce5239f74453d93e50e77b85/NativeScript/nativescript-angular/issues/2088 |
| og:image:alt | Environment ‼ Update available for component nativescript. Your current version is 6.0.3 and the latest available version is 6.2.2. ‼ Update available for component tns-core-modules. Your current v... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | james-wynne-dev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-angular git https://github.com/NativeScript/nativescript-angular.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 35951404 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35951404 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width