René's URL Explorer Experiment


Title: iOS: issue when trying to chain modal pages within promise · Issue #5744 · NativeScript/NativeScript · GitHub

Open Graph Title: iOS: issue when trying to chain modal pages within promise · Issue #5744 · NativeScript/NativeScript

X Title: iOS: issue when trying to chain modal pages within promise · Issue #5744 · NativeScript/NativeScript

Description: Did you verify this is a real problem by searching the [NativeScript Forum] YES Which platform(s) does your issue occur on? iOS Tell us about the problem I try to show multiple independent modal pages one after the other using a promise:...

Open Graph Description: Did you verify this is a real problem by searching the [NativeScript Forum] YES Which platform(s) does your issue occur on? iOS Tell us about the problem I try to show multiple independent modal pa...

X Description: Did you verify this is a real problem by searching the [NativeScript Forum] YES Which platform(s) does your issue occur on? iOS Tell us about the problem I try to show multiple independent modal pa...

Opengraph URL: https://github.com/NativeScript/NativeScript/issues/5744

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"iOS: issue when trying to chain modal pages within promise","articleBody":"### Did you verify this is a real problem by searching the [NativeScript Forum]\r\n_YES_\r\n\r\n### Which platform(s) does your issue occur on?\r\niOS\r\n\r\n### Tell us about the problem\r\nI try to show multiple independent modal pages one after the other using a promise:\r\n```\r\nnew Promise(function(resolve, reject) {\r\n        application.getRootView().showModal(\r\n            \"modal-page\",\r\n            null,\r\n            function() {\r\n                resolve(true);\r\n            },\r\n            false\r\n        );\r\n    }).then(function(response) {\r\n        if(application.getRootView().modal) {\r\n            application.getRootView().closeModal();\r\n        } else {\r\n            console.log(\"closing modal page is not neccessary, as there is no open modal page...\");\r\n        }\r\n\r\n        try {\r\n            application.getRootView().showModal(\r\n                \"modal-page\",\r\n                null,\r\n                function() {\r\n                    var topmost = frameModule.topmost();\r\n                    if(topmost) {\r\n                        topmost.navigate({\r\n                            moduleName: \"second-page\",\r\n                            animated: true\r\n                        });\r\n                    }\r\n                },\r\n                false\r\n            );\r\n        } catch(e) {\r\n            console.log(e);\r\n        }\r\n    });\r\n```\r\nIt opens the first modal page and when I close it to see the next, I always get the following error mesage:\r\n`Error: Parent page is not part of the window hierarchy. Close the current modal page before showing another one!`\r\n\r\nI am not sure if this is the expected behaviour, so I need to know what I am doing wrong. Please note, that in our real app there are some conditions for showing the modal pages, so it might be possible to skip one of the modal pages or even all of them.\r\n\r\n\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: 4.0.0\r\n- Cross-platform modules: next (4.0.0-2018-04-25-02)\r\n- Runtime(s): 4.0.2\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\n1. Start the app\r\n2. Tap the button to open the first modal\r\n3. tap the button to close this modal, so the second modal should be opened, but this does not happen on iOS.\r\n\r\n### Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.\r\n[NSIssues4.zip](https://github.com/NativeScript/NativeScript/files/1947861/NSIssues4.zip)\r\n\r\n","author":{"url":"https://github.com/felixkrautschuk","@type":"Person","name":"felixkrautschuk"},"datePublished":"2018-04-25T16:10:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/5744/NativeScript/issues/5744"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6842b1a1-ae75-6df9-e033-323e624711ba
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDB7E:F5443:4E68DE8:6A86340:69731516
html-safe-nonce20a32b4dbf2d20597dd39eefa70c3b4b8c6143d18210271cd28602322a85b10a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjdFOkY1NDQzOjRFNjhERTg6NkE4NjM0MDo2OTczMTUxNiIsInZpc2l0b3JfaWQiOiIzMjcwMjY0ODA5MDU5NDU2Mjc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8249ebcf0be6c6bbecd4882c80a5408d216380e7d055756b8bcd5f9c61291387
hovercard-subject-tagissue:317696192
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/5744/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5803f75159d13046410a3733e1e7f553616832c7e0b1a257722fa3c39975c67f/NativeScript/NativeScript/issues/5744
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5803f75159d13046410a3733e1e7f553616832c7e0b1a257722fa3c39975c67f/NativeScript/NativeScript/issues/5744
og:image:altDid you verify this is a real problem by searching the [NativeScript Forum] YES Which platform(s) does your issue occur on? iOS Tell us about the problem I try to show multiple independent modal pa...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefelixkrautschuk
hostnamegithub.com
expected-hostnamegithub.com
None44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id31492490
octolytics-dimension-repository_nwoNativeScript/NativeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31492490
octolytics-dimension-repository_network_root_nwoNativeScript/NativeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea5e2b48bd1260476599758f5d253b5d24092ab84
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/NativeScript/issues/5744#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F5744
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F5744
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2FNativeScript
Reloadhttps://github.com/NativeScript/NativeScript/issues/5744
Reloadhttps://github.com/NativeScript/NativeScript/issues/5744
Reloadhttps://github.com/NativeScript/NativeScript/issues/5744
NativeScript https://github.com/NativeScript
NativeScripthttps://github.com/NativeScript/NativeScript
Please reload this pagehttps://github.com/NativeScript/NativeScript/issues/5744
Notifications https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Fork 1.7k https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Star 25.4k https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Code https://github.com/NativeScript/NativeScript
Issues 869 https://github.com/NativeScript/NativeScript/issues
Pull requests 59 https://github.com/NativeScript/NativeScript/pulls
Discussions https://github.com/NativeScript/NativeScript/discussions
Actions https://github.com/NativeScript/NativeScript/actions
Projects 0 https://github.com/NativeScript/NativeScript/projects
Wiki https://github.com/NativeScript/NativeScript/wiki
Security 0 https://github.com/NativeScript/NativeScript/security
Insights https://github.com/NativeScript/NativeScript/pulse
Code https://github.com/NativeScript/NativeScript
Issues https://github.com/NativeScript/NativeScript/issues
Pull requests https://github.com/NativeScript/NativeScript/pulls
Discussions https://github.com/NativeScript/NativeScript/discussions
Actions https://github.com/NativeScript/NativeScript/actions
Projects https://github.com/NativeScript/NativeScript/projects
Wiki https://github.com/NativeScript/NativeScript/wiki
Security https://github.com/NativeScript/NativeScript/security
Insights https://github.com/NativeScript/NativeScript/pulse
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/5744
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/5744
#6637https://github.com/NativeScript/NativeScript/pull/6637
iOS: issue when trying to chain modal pages within promisehttps://github.com/NativeScript/NativeScript/issues/5744#top
#6637https://github.com/NativeScript/NativeScript/pull/6637
https://github.com/vakrilov
backloghttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22backlog%22
os: ioshttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22os%3A%20ios%22
severity: mediumhttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22severity%3A%20medium%22
5.1https://github.com/NativeScript/NativeScript/milestone/42
https://github.com/felixkrautschuk
https://github.com/felixkrautschuk
felixkrautschukhttps://github.com/felixkrautschuk
on Apr 25, 2018https://github.com/NativeScript/NativeScript/issues/5744#issue-317696192
NSIssues4.ziphttps://github.com/NativeScript/NativeScript/files/1947861/NSIssues4.zip
vakrilovhttps://github.com/vakrilov
backloghttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22backlog%22
os: ioshttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22os%3A%20ios%22
severity: mediumhttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22severity%3A%20medium%22
5.1https://github.com/NativeScript/NativeScript/milestone/42
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.