René's URL Explorer Experiment


Title: App crashing on device but ok on simulators · Issue #318 · fullstackreact/react-native-firestack · GitHub

Open Graph Title: App crashing on device but ok on simulators · Issue #318 · fullstackreact/react-native-firestack

X Title: App crashing on device but ok on simulators · Issue #318 · fullstackreact/react-native-firestack

Description: Really need someone's help to figure this one out. Our app has started crashing on device, but during dev all is good on sims. Narrowed it down to the listenForAuth method in XCode where the exception is being thrown - specifically it's ...

Open Graph Description: Really need someone's help to figure this one out. Our app has started crashing on device, but during dev all is good on sims. Narrowed it down to the listenForAuth method in XCode where the except...

X Description: Really need someone's help to figure this one out. Our app has started crashing on device, but during dev all is good on sims. Narrowed it down to the listenForAuth method in XCode where the ex...

Opengraph URL: https://github.com/fullstackreact/react-native-firestack/issues/318

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"App crashing on device but ok on simulators","articleBody":"Really need someone's help to figure this one out. Our app has started crashing on device, but during dev all is good on sims.\r\n\r\nNarrowed it down to the listenForAuth method in XCode where the exception is being thrown - specifically it's the \"userTokenError\" event. \r\n\r\nFirstly how should we be protecting against this crash scenario ? Im assuming we need to call reauthenticateWithCredentialForProvider() ? If yes, not sure where to put that call, in relation to the \"listenForAuth\" listener which we invoke on app startup (in an action).\r\n\r\nAppreciate anyone's help/guidance on this, thanks.\r\n\r\n\r\n```\r\nRCT_EXPORT_METHOD(listenForAuth)\r\n{\r\n    self->listening = true;\r\n    self->authListenerHandle =\r\n    [[FIRAuth auth] addAuthStateDidChangeListener:^(FIRAuth *_Nonnull auth,\r\n                                                    FIRUser *_Nullable user) {\r\n\r\n        if (user != nil) {\r\n            // User is signed in.\r\n            [self userPropsFromFIRUserWithToken:user\r\n                                    andCallback:^(NSDictionary *userProps, NSError * error) {\r\n                                        if (error != nil) {\r\n                                            [self\r\n                                             sendJSEvent:AUTH_CHANGED_EVENT\r\n                                             props: @{\r\n                 **crashing here ====>**  @\"eventName\": @\"userTokenError\",\r\n                                                      @\"authenticated\": @((BOOL)false),\r\n                                                      @\"errorMessage\": [error localizedFailureReason]\r\n                                                      }];\r\n                                        } else {\r\n                                            [self\r\n                                             sendJSEvent:AUTH_CHANGED_EVENT\r\n                                             props: @{\r\n                                                      @\"eventName\": @\"user\",\r\n                                                      @\"authenticated\": @((BOOL)true),\r\n                                                      @\"user\": userProps\r\n                                                      }];\r\n                                        }\r\n                                    }];\r\n\r\n```","author":{"url":"https://github.com/ajonno","@type":"Person","name":"ajonno"},"datePublished":"2017-03-23T22:20:25Z","url":"https://github.com/fullstackreact/react-native-firestack/issues/318"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:20da7dc9-9b45-8227-9500-8aeb1a23857d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA68A:2058EE:47AE6B:5E6D6D:6AFE6719
html-safe-nonce072bb041329a55a42ab23895174684885a9d3530d0a2207e3cddfa0a77483271
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjhBOjIwNThFRTo0N0FFNkI6NUU2RDZEOjZBRkU2NzE5IiwidmlzaXRvcl9pZCI6IjczMTM5Njk1OTQ3ODIwODI4NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc60e092ef9e63fa0980c41b9ce6d1205e9b3c098149fd836d71fd2faa10d6e79
hovercard-subject-tagissue:216589919
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/fullstackreact/react-native-firestack/318/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cb814cf0661e3d23e6545515b82b784b7330689e789e0eeec8fef4a9c82c7c65/fullstackreact/react-native-firestack/issues/318
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cb814cf0661e3d23e6545515b82b784b7330689e789e0eeec8fef4a9c82c7c65/fullstackreact/react-native-firestack/issues/318
og:image:altReally need someone's help to figure this one out. Our app has started crashing on device, but during dev all is good on sims. Narrowed it down to the listenForAuth method in XCode where the except...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameajonno
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/fullstackreact/react-native-firestack git https://github.com/fullstackreact/react-native-firestack.git
octolytics-dimension-user_id16674738
octolytics-dimension-user_loginfullstackreact
octolytics-dimension-repository_id60655868
octolytics-dimension-repository_nwofullstackreact/react-native-firestack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id60655868
octolytics-dimension-repository_network_root_nwofullstackreact/react-native-firestack
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
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/fullstackreact/react-native-firestack/issues/318#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffullstackreact%2Freact-native-firestack%2Fissues%2F318
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffullstackreact%2Freact-native-firestack%2Fissues%2F318
Sign uphttps://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=fullstackreact%2Freact-native-firestack
Reloadhttps://github.com/fullstackreact/react-native-firestack/issues/318
Reloadhttps://github.com/fullstackreact/react-native-firestack/issues/318
Reloadhttps://github.com/fullstackreact/react-native-firestack/issues/318
fullstackreacthttps://github.com/fullstackreact
react-native-firestackhttps://github.com/fullstackreact/react-native-firestack
Codehttps://github.com/fullstackreact/react-native-firestack
Issues98 (98)https://github.com/fullstackreact/react-native-firestack/issues
Pull requests14 (14)https://github.com/fullstackreact/react-native-firestack/pulls
Actionshttps://github.com/fullstackreact/react-native-firestack/actions
Projectshttps://github.com/fullstackreact/react-native-firestack/projects
Security and qualityhttps://github.com/fullstackreact/react-native-firestack/security
Insightshttps://github.com/fullstackreact/react-native-firestack/insights
https://github.com/fullstackreact/react-native-firestack
New issuehttps://github.com/login?return_to=https://github.com/fullstackreact/react-native-firestack/issues/318
New issuehttps://github.com/login?return_to=https://github.com/fullstackreact/react-native-firestack/issues/318
App crashing on device but ok on simulatorshttps://github.com/fullstackreact/react-native-firestack/issues/318#top
https://github.com/ajonno
ajonnohttps://github.com/ajonno
on Mar 23, 2017https://github.com/fullstackreact/react-native-firestack/issues/318#issue-216589919
https://github.com/ajonno
ajonnohttps://github.com/ajonno
on Mar 25, 2017https://github.com/fullstackreact/react-native-firestack/issues/318#issuecomment-289205077
https://github.com/ajonno
ajonnohttps://github.com/ajonno
on Mar 27, 2017https://github.com/fullstackreact/react-native-firestack/issues/318#issuecomment-289446027
https://github.com/jeveloper
jeveloperhttps://github.com/jeveloper
on Mar 30, 2017https://github.com/fullstackreact/react-native-firestack/issues/318#issuecomment-290476956
@auserhttps://github.com/auser
https://github.com/kelvinpompey
kelvinpompeyhttps://github.com/kelvinpompey
on Apr 10, 2017https://github.com/fullstackreact/react-native-firestack/issues/318#issuecomment-292955590
https://github.com/kelvinpompey
kelvinpompeyhttps://github.com/kelvinpompey
on Apr 10, 2017https://github.com/fullstackreact/react-native-firestack/issues/318#issuecomment-292987595
KrauseFxhttps://github.com/KrauseFx
on May 17, 2017https://github.com/fullstackreact/react-native-firestack/issues/318#event-1085272475
Fix crash that happens when Firebase API key gets revokedhttps://github.com/KrauseFx/react-native-firestack/commit/5b777bfc1ded1d739b93bced6c1bbed7b4b1c348
5b777bfhttps://github.com/KrauseFx/react-native-firestack/commit/5b777bfc1ded1d739b93bced6c1bbed7b4b1c348
https://github.com/KrauseFx
KrauseFxhttps://github.com/KrauseFx
on May 17, 2017https://github.com/fullstackreact/react-native-firestack/issues/318#issuecomment-301977250
#340https://github.com/fullstackreact/react-native-firestack/pull/340
https://github.com/Salakar
Salakarhttps://github.com/Salakar
on May 27, 2017https://github.com/fullstackreact/react-native-firestack/issues/318#issuecomment-304445559
@ajonnohttps://github.com/ajonno
@jeveloperhttps://github.com/jeveloper
@kelvinpompeyhttps://github.com/kelvinpompey
#340https://github.com/fullstackreact/react-native-firestack/pull/340
Sign up for freehttps://github.com/signup?return_to=https://github.com/fullstackreact/react-native-firestack/issues/318
Sign in to commenthttps://github.com/login?return_to=https://github.com/fullstackreact/react-native-firestack/issues/318
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.