question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Getting addListener to fire on IOS

See original GitHub issue

Plugin(s): Capacitor Firebase Authentication

Platform(s): IOS fails but web works fine

Current behavior: When I use this plugin and console log results, the web version works fine. When I attempt to use the similar logging for Native Platform (Confirming that the Native code is working) trying the addListener command in several locations (see Github Repo) on the IOS logging does not seem to be firing

Expected behavior: What I am wanting to achive is to get Firebase Custom Claims and report them (and then perform access actions based on those claims)

Steps to reproduce: See Git Repo - comment with logic with various positions of the addListener

Related code: https://github.com/sclawer/MobileApp

Other information:

Capacitor doctor:

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 3.4.3
  @capacitor/core: 3.4.3
  @capacitor/android: 3.4.3
  @capacitor/ios: 3.4.3

Installed Dependencies:

  @capacitor/cli: 3.4.3
  @capacitor/core: 3.4.3
  @capacitor/android: 3.4.3
  @capacitor/ios: 3.4.3

[success] iOS looking great! 👌
[success] Android looking great! 👌

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
robingenzcommented, May 17, 2022

@JuliusJacobitz Your problem should be another one. Please have a look at this two comments: https://github.com/robingenz/capacitor-firebase-authentication/issues/78#issuecomment-924055336 and https://github.com/robingenz/capacitor-firebase/issues/39#issuecomment-1078402815. If this does not help you, please create a new issue.

0reactions
github-actions[bot]commented, Jun 17, 2022

It looks like there hasn’t been a reply in 30 days, so I’m closing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Window.click event does not fire on IOS safari - JavaScript only
' Switch the listener from 'window' to 'body' fixed the issue in Safari. Good listener document.querySelector('body').addEventListener('click', ...
Read more >
bug: capacitor network plugin doesn't fire an event after going ...
On my case is iOS broken. The native CAPLog prints all network state changes correct! But the events are not broadcasting to the...
Read more >
DOMContentLoaded not working in Safari App Extension
Hey everyone! I have figured out a work-around to the issue. It appears that a lot of the time, the DOMContentLoaded event would...
Read more >
Simple Click Events | Maps JavaScript API - Google Developers
This example demonstrates the use of event listeners. It. listens for the click event on a marker to zoom the map when the...
Read more >
deviceready - Apache Cordova
Once the event fires, you can safely make calls to Cordova APIs. Applications typically attach an event listener with document.addEventListener once the HTML ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found